![]() ![]() Which you wish to work, and then change the Python interpreter used by Spyder-kernels package into any Python environment ( condaĮnvironment, virtualenv/venv, system Python, WinPython, etc) in Starting with Spyder 3.3.1, you can install the modular Therefore, whenĭealing with multiple environments, we recommend the modular Isn't as flexible or configurable as the alternative. Installed however, it results in multiple installations to manage and Versions and should require no extra configuration once the IDE is Install it directly into the environment from which you'd like to use ![]() To use Spyder with another environment, the simplest way is to just PS: in spyder you should see at the bottom something like thisįrom Spyder official page on Github: The naive approach ![]() Preferences > Python Interpreter > Use the following interpreter and paste the environment python executable path Finding this path can be done using from the prompt this command python -c "import sys print(sys.executable)"ĭeactivate the environment (i.e., return to base conda deactivate) Install spyder-kernels inside the environment (e.g., conda install spyder-kernels)įind and copy the path for the python executable inside the environment. Note that depending on how you create it (conda, virtualenv) the environment folder will be located at different place on your system)Īctivate the environment (e.g., conda activate ) Spyder should be installed in the base environmentĬreate an new environment.To do without reinstalling spyder in all environments follow official reference here. This is of course faster than the long load of "Anaconda Navigator" > switch environment > launch Spyder answer). (I have also tested the installation with pip, but for Python 3.4 or older versions, it breaks with the library dependencies error that requires manual installation.)Īnd now to run Spyder with Python 3.4 just type: spyderįor a normal opening, use "Anaconda Prompt" > activate myenv > spyder (then the "Anaconda Prompt" must stay open, you cannot use it for other commands, and a force-close will shut down Spyder). Now you have to install spyder additionally for the new environment with this command (after the activation of the environment with the command above): conda install spyder ![]() as a shortcut for "source")Īctivate myenv # (in windows - note that you should be in your c:\anaconda2 directory) To activate it : source activate myenv # (in linux, you can use. Miniforge will automatically use the community-maintained Conda-Forge repository, which has a much wider variety of packages and is generally more up to date than the Anaconda equivalent, in addition to being free of any commercial restrictions.There is an option to create virtual environments in Anaconda with required Python version. Then, simply install the packages you need (including Spyder, if you aren’t using our recommended Standalone installers) with conda as you usually do. Instead, you can simply download the similar Miniforge distribution, which is 100% open source and identical to full Anaconda (aside from not bundling the Python packages installed by default in the Anaconda base environment, which we recommend you avoid using anyway given any problems here can break your whole installation). However, these terms only apply to the package infrastructure (the full Anaconda distribution and the defaults conda channel). If you use Spyder with the Anaconda distribution, they recently changed their Terms of Service to add restrictions on large (> 200 employee) for-profit companies using Anaconda on a large scale. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |