![spyder install pyqt5 spyder install pyqt5](https://i.stack.imgur.com/wKkQv.png)
![spyder install pyqt5 spyder install pyqt5](http://static.codebaoku.com/pics/80/e6/80e6e130bb34aedf1efea6b54bedea4d.jpg)
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. (on Windows, for Linux or MacOS, you can search for similar commands) go to Tools -> preferences -> python Interpreter and select the python file from the env you want to link to spyderĮx : /home/you/anaconda3/envs/your_env/bin/pythonĪdditional to tomaskazemekas's answer: you should install spyder in that virtual environment by: conda install -n myenv spyder.run spyder from the environment (after source activate).Search and select Spyder-related packages and then click on "Apply" to install them. If you find a bug, please help us posting it in the Anaconda Issues bug-tracker too! If you run into trouble creating the environment or if the environment was not correctly created you can double check what got installed: Clicking the "Environments" opens a management window showing installed packages. There are still a few minor bugs when setting up your environment, most of them should be solved by restarting the Navigator. Go "Home" and click on "Install" under the Spyder box.Be sure to change Python/R Kernel version if needed. Click on Environments > Create and give a name to your environment.This is the most reliable way to do it, unless you want to create environments programmatically which I don't think is the case for most users: Here is a quick way to do it in 2021 using the Anaconda Navigator. This is of course faster than the long load of "Anaconda Navigator" > switch environment > launch Spyder answer).
#Spyder install pyqt5 manual#
(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
#Spyder install pyqt5 windows#
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. +++ -24,6 +24,9 checksums rmd160 bfe5376baf97bde0ebad0fd7f109e23ff3242975 \ĭescription-append (.There is an option to create virtual environments in Anaconda with required Python version. You can use this diff as a starting point:ĭiff -git a/python/py-pyqt5/Portfile b/python/py-pyqt5/Portfile If you could create a PR, that'd be great. I don't have time to work on this anytime soon. ModuleNotFoundError: No module named 'PyQt5.QtWebKitWidgets' ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets'ĭuring handling of the above exception, another exception occurred:įile "/opt/local/bin/spyder", line 3, in įile "/opt/local/Library/Frameworks/amework/Versions/3.7/lib/python3.7/site-packages/spyder/app/start.py", line 193, in mainįile "/opt/local/Library/Frameworks/amework/Versions/3.7/lib/python3.7/site-packages/spyder/app/mainwindow.py", line 81, in įrom qtpy import QtWebEngineWidgets # analysis:ignoreįile "/opt/local/Library/Frameworks/amework/Versions/3.7/lib/python3.7/site-packages/qtpy/QtWebEngineWidgets.py", line 26, in įrom PyQt5.QtWebKitWidgets import QWebPage as QWebEnginePage Here is the runtime error I see with only that variant:įile "/opt/local/Library/Frameworks/amework/Versions/3.7/lib/python3.7/site-packages/qtpy/QtWebEngineWidgets.py", line 22, in įrom PyQt5.QtWebEngineWidgets import QWebEnginePage Something changed recently because py-spyder now needs py-pyqt5 +webengine +webkit, but the portfile only requires +webengine.