Error in installing numpy on python 3.9

Answered

Hi,

I am getting the attached error while installing numpy on python interpreter 3.9. Please note that i could install numpy on interpreter 3.8 without any issues and it still runs fine.

The error says 'install Python development packages'. However, I am not able to get any python-dev package in PyCharm for pip install.

0
9 comments

Hello,

The issue is not related to PyCharm because the installation is performed by pip.

Try installing  python-dev as mentioned in https://stackoverflow.com/questions/24892810/python-3-4-and-2-7-cannot-install-numpy-package-for-python-3-4

For your Python version, run

apt-get install python3.9-dev
1
Avatar
Permanently deleted user

Thank you Sergey. It worked like a charm :)

0

Hello,

I am presently facing the same challenge.

I just installed python 3.9.2 and pycharm 2020-3.3, having set my environment in the project interpreter, I tried to install new packages but it's always coming up with error loading packages. I have tried to upgrade my pip from the terminal, it wasn't successful, I am daamn confused.

Kindly profer a step-by-step solution

0

Hello Caseyviva1

 

Please attach a full error trace. I am also wondering if the installation would work out of PyCharm in the same virtual environment. Follow steps provided here https://intellij-support.jetbrains.com/hc/en-us/articles/360010202240  to define it. 

0

Thank you! 

 

Certainly, not IDE caused/related issue. Please see this thread https://stackoverflow.com/questions/16370583/pip-issue-installing-almost-any-library

0

Alright.

Although I uninstalled the Python 3.9.2 and the Pycharm IDE, reinstalled them again but was faced with same issue.
 
I had to install another version of Python, Python 3.6.2 and just run it in CMD, I was able to install numpy successfully. I reinstalled the Pycharm, tried to install libraries from there but was met with the same issues.
 
The PIP is no longer working on CMD.
 
I have reinstalled the python and pycharm again, still not working.
0

Please I need a step-by-step approach of what has worked in the past.

0

Hello, 

 

I apologize, but I cannot provide you with a step-by-step solution which would work for 100&. Firstly, because this is not an IDE-related issue, secondly according to the error output there might be multiple approaches. 

0

Please sign in to leave a comment.