close

How to run Spyder in virtual environment?

Hello Guys, How are you all? Hope You all Are Fine. Today We Are Going To learn about How to run Spyder in virtual environment in Python. So Here I am Explain to you all the possible Methods here.

Without wasting your time, Let’s start This Article.

Table of Contents

How to run Spyder in virtual environment?

  1. How to run Spyder in virtual environment?

    Additional to tomaskazemekas's answer: you should install spyder in that virtual environment by:

  2. run Spyder in virtual environment

    Additional to tomaskazemekas's answer: you should install spyder in that virtual environment by:

Method 1

What worked for me :

  1. run spyder from the environment (after source activate)
  2. go to Tools –> preferences –> python Interpreter and select the python file from the env you want to link to spyder ex : /home/you/anaconda3/envs/your_env/bin/python

Worked on ubuntu 16, spyder3, python3.6.

Method 2

Additional to tomaskazemekas’s answer: you should install spyder in that virtual environment by:

conda install -n myenv spyder

(on Windows, for Linux or MacOS, you can search for similar commands)

Conclusion

It’s all About this issue. Hope all Methods helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which Method worked for you? Thank You.

Also, Read