Can't Install New Packages for Python (Python 3.9.0, Windows 10)

Can't install new packages for Python (Python 3.9.0, Windows 10)

Python 3.9 is not even released for 10 days yet. As far as i see a lot of the packages are not supporting Python 3.9 yet. I think your best bet is to uninstall Python 3.9 and install Python 3.8.6.
If you want you could try the following just to make sure, but i think i won't work.

pip intstall pipwin
pipwin install <package name>

Python 3.9 import issue

Each version of python has its own global sites package directory where it stores the packages you install.

Ex: Python 3.8 will store under %appdata%\Local\Programs\Python\Python38-32\Lib\site-packages

Python 3.9 would store it in a different location (like Python39-32)

In order to install a package for specific version of python you need to install it with python version command.

py -3.9 -m pip install requests

You can refer the official documentation here

I'm trying to install Kivy with Python 3.9.0 and it gives me an error after I type: python -m pip install kivy

Try pip install pipwin and then pipwin install kivy==1.11.1

Credits to @KetZoomer

Python, Error while installing matplotlib

edit: matplotlib has now released wheels for python 3.9 so pip install --upgrade matplotlib should work.

original answer

matplotlib hasn't made a wheel yet for version 3.9 so your python attempted to build it from source. You should downgrade to python 3.8 and then everything should work



Related Topics



Leave a reply



Submit