![]() After performing these step, i think you are ready to go. ![]() Restart Spyder application to implement the changes. More than 20 million people use our technology to solve the toughest. Anaconda was built by data scientists, for data scientists. Start working with thousands of open-source packages and libraries today. To install spyder-kernels, open command prompt and type the command suggested in error message. Anaconda offers the easiest way to perform Python/R data science and machine learning on a single machine. If this package is not installed, you will see the following error message: Spyder requires a supported version of the spyder-kernels package to be present in the working environment you want to run your console in. Open Spyder IDE and go to Tools –> Preferences –> Python Interpreter –> Select “use the following Python interpreter” –> add python.exe path –> apply Step 3: Install spyder-kernels ![]() Step 2: Change Spyder’s default Python interpreter C:\Users\Puneet\AppData\Local\Programs\Python\Python39 and add it to the PYTHONPATH Manager of Spyder 5. Open file location and go to properties of Python application, entry in the target tab shows the installation directory of Python interpreter. ![]() Go to search bar and type “Python” (provided you have python installed on your system) and go to the file location of Python application file. To find python installation directory on Windows 10, you may use the following method: Go to Tools –> PYTHONPATH MANAGER –> Add the Python Installation Path as shown below: Step-1: Add path of Python installation to PYTHONPATH manager of Spyder If you want to use other packages than pre-installed packages, following set of instructions may be helpful to you. This may not be such a good idea depending on the situation.Spyder has released version 5 of Spyder IDE and it comes with its own set of packages. If you have already installed Pygame somewhere and wants to use it with a Python interpreter that doesn't know about it, you can use the PYTHONPATH environment variable to let Python know from where else it can try to find it. If you are interested in using the PyPi package (this is what pip installs), but manage it with conda, then you need to build a conda package. That's it, you should be able to import it. If you use environments, these aren't problems, because the env tool ( conda, venv, virtualenv, &c) will modify the PATH as needed.Ģ) pip install pygame, add sudo if you intend to install for the system's default interpreter on /usr/bin/python. The Python interpreter you use and the launched spyder instance depend on their precedence on your PATH. Note: The location to where pip installs modules depends on the selected Python interpreter. Installing with pipġ) Activate the virtual environment where you want to install Pygame or, if you are not using environments, make sure that you are using the Python interpreter for which you want to install the module, do this with which python, it should point to your intended interpreter. That particular conda package you are trying to download seems to depend on python 2.7, if you download the tarball, you can check the info/index.json file, it marks python 2.7* as dependency. UnsatisfiableError: The following specifications were found to be in conflict: - pygame -> python 2.7 -> openssl 1.0.1* - python 3.6** There's nothing to import, you never installed the module because of UnsatisfiableError. I have tried pip, conda but every time when i import it i get the error no module named pygame You don't install Pygame for Spyder, it's a Python module, so you install it for a particular Python interpreter (or for various). So i want this to work specidically in the newest version of spyder(spyder3)(maybe with pythonpathmanager
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |