Run spyder Ubuntu virtual environment tensorflow-gpu 16.04 linux anaconda created under, so that the package is the package spyder run in a virtual environment

Creative Commons License Copyright: Attribution, allow others to create paper-based, and must distribute paper (based on the original license agreement with the same license Creative Commons )

Shortcut to open the terminal, enter the spyderopen spyder working interface
Here Insert Picture Description
and click on Tools - Preferences - Run - Console select the second
--python interpreter - select the Python interpreter for Spyder consoles-- second choice use the following Python interpreter - then select the python virtual environment that corresponds to the folder in which
I was the

home/drl/anaconda3/bin/python

Read:

/home/drl/anaconda3/envs/tensorflow-gpu/bin/python

Then click Apply, and then click OK to.

Here Insert Picture Description
Here Insert Picture DescriptionThen run a successful shots as follows:
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/kellyroslyn/article/details/93500819