Hi, Philip correctly states how to install spyder 5.0.3 inside Anaconda. This allows you to use the python packages in the base environment inside spyder. You can install new ones using *conda* or the Anaconda Navigator. If you don't want to use Anaconda, you can also select the normal (cpython) interpreter as python interpreter in *Preferences *> *Python Interpreter *> *Python Interpreter *>* Use the following Python interpreter*. Spyder expects the executable file of the program that is also run by the `python3` terminal command. On MacOS this should be /usr/bin/python3. Now you can install packages using pip and use those packages in the console or when executing a program in spyder.
Kind regards yfprojects philip...@gmail.com schrieb am Donnerstag, 3. Juni 2021 um 09:34:24 UTC: > The direct download has its own Python environment which is independent of > Anaconda. It has numpy, matplotlib, pandas and scipy but none of the > additional data science libraries. It also can't use pip and conda commands. > > Ensure you have anaconda 2021-05 installed (the latest standalone > installer). > In Windows open up the Anaconda PowerShell Prompt or in Linux/Mac open up > the Terminal. > Type in: > conda update --all > This should update the Anaconda Python distribution to the latest stable > version, specifically updating Python to a compatible version for Spyder 5. > > Next search the anaconda and conda-forge channels for the latest Spyder > release: > conda search --channel anaconda spyder > conda search --channel conda-forge spyder > > At the time of writing the conda-forge channel is more up to date than the > anaconda channel. > Type in: > conda install --channel conda-forge spyder=5.0.3 > On my Linux and Windows 10 install not specifying the version number > preferenced spyder version 4.2.5, so I had to specify 5.0.3 to begin the > install. > > On Thursday, June 3, 2021 at 12:30:20 AM UTC+1 aos...@gmail.com wrote: > >> Hi all, >> >> Just upgraded to 5.0.3 with direct download. >> >> Getting the following: >> import mysql.connector >> ModuleNotFoundError: No module named 'mysql' >> >> I have tried the following: >> >> pip3 install mysql-connector-python <- didn't solve it >> >> pip3 install mysql-connector <- didn't solve it >> >> pip3 install mysql-connector-python-rf <- didn't solve it >> >> conda install -c anaconda mysql-connector-python <-this one failed >> >> failed >> >> UnsatisfiableError: The following specifications were found >> >> to be incompatible with the existing python installation in your >> environment: >> >> Specifications: >> >> - mysql-connector-python -> >> python[version='>=2.7,<2.8.0a0|>=3.7,<3.8.0a0|>=3.6,<3.7.0a0|>=3.5,<3.6.0a0'] >> >> Your python: python=3.8 >> >> Does that mean I have to downgrade my python version? >> >> Thanks, >> > -- You received this message because you are subscribed to the Google Groups "spyder" group. To unsubscribe from this group and stop receiving emails from it, send an email to spyderlib+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/spyderlib/d8f84ff3-f539-4969-8e16-1194f362609en%40googlegroups.com.