Search code examples
windowspippycharm

Installing a package that require C++ on pycharm (windows) using pip


I am developing a program in Python on Windows 10 using Pycharm. In this program I need to import this Python package that uses pip to be installed.

Following the standard procedure to install with pip on Pycharm I get an error:

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

The url gets me to an abandoned website but I finally found a way to install Visual C++ building tools (there).

Unfortunately I still have the same error.

I also upgraded the pip version to 18.1, in case the outdated version was to blame, but it didn't change anything.

What do I need to do for Pycharm to recognize my installation of Visual C++?

EDIT: This question is not the same as other questions that don't involve using Pycharm. Please take this into consideration while answering.


Solution

  • you don't have to use pip, there is very sophisticated way to install packages in pycharm. In your pycharm, go to File>Settings>Project:[your-project-name]>Project Interpreter: enter image description here

    Click on the + sign: and look for your package, in our condition ie. numpy. and click on install.

    viola problem solved