Home > Enterprise >  Install pandas on different python versions on same computer(Windows 10)
Install pandas on different python versions on same computer(Windows 10)

Time:12-08

I recently installed a newer version of python version 3.10.8. I still have the old version running version 3.9.9. I would like to install pandas on the new python installation using pip install pandas command. I don't know how to specify in the terminal so that it installs on the python 3.10.8 version installation.

CodePudding user response:

You can specify the path to your Python 3.10.8 installation when running pip to ensure that pandas is installed for the correct version of Python. For example, if the path to your Python 3.10.8 installation is C:\Python\Python3.10, you can use the following command to install pandas:

pip install pandas --python=C:\Python\Python3.10

CodePudding user response:

I accepted the answer from @Hasidul Islam although i had to make some modifications to get it to work. The answer and comments above were useful. I will explain how i resolved it in case someone else has a similar issue.

There was no installation folder for the python 3.10.8 in the programs folder, i want to believe it was because of the installed 3.9.9 version which had a folder Python39 in the default installation location.

So I uninstalled and reinstalled the newer version (3.30.8) to a custom location/folder. I opened the Python\Scripts folder of the new installation in the command line. I was able to install pandas with

pip install pandas

  • Related