Spyder does not run in Anaconda virtual environment on Windows 10

前端 未结 4 1785
一个人的身影
一个人的身影 2020-12-03 03:01

This is my first post here. I tried to find an answer to this question but to no avail.

Just installed Anaconda2 (2.7.11 Python kernel) on my Win10 machine. I am t

4条回答
  •  一生所求
    2020-12-03 03:45

    Note: using Windows 10.

    To use Spyder in a particular environment, there are at least two options:

    1. conda install spyder into that environment - the problem, for me, is that it also wants to install a large number of other packages that I don't want or need in that environment.

    I just want to use Spyder for interactive programming/investigation using the particular packages that I have chosen to install in a particular environment. The solution to this is option 2.

    Note: I installed Anaconda initially and so have Spyder in the Anaconda environment.

    1. Copy the relevant Spyder files from the Anaconda environment into the particular environment(s) you want to use Spyder in:

    From: C:\Users\User\Anaconda\Lib\site-packages
    Copy: spyderlib & spyderplugins Folders

    To: C:\Users\User\Anaconda\envs\[Environment_Name]\Lib\site-packages

    From: C:\Users\User\Anaconda\Scripts
    Copy: spyder.exe, spyder.ico, spyder_light.ico & spyder-script.py Files

    To: C:\Users\User\Anaconda\envs\[Environment_Name]\Scripts

    To use Spyder in the desired environment:

    1. Activate the environment
    2. (Environment_Name) prompt> spyder

    This works for me!

提交回复
热议问题