4

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.

Anne Aunyme
  • 506
  • 4
  • 14
  • Possible duplicate of [Pip error even Microsoft Visual C++ 14.0 is installed](https://stackoverflow.com/questions/49610212/pip-error-even-microsoft-visual-c-14-0-is-installed) – phd Jan 15 '19 at 16:42
  • https://stackoverflow.com/search?q=%5Bpip%5D+Microsoft+Visual+C%2B%2B+14.0+is+required – phd Jan 15 '19 at 16:42
  • https://wiki.python.org/moin/WindowsCompilers – phd Jan 15 '19 at 16:42
  • https://stackoverflow.com/questions/38949519/error-while-installing-lxml-through-pip-microsoft-visual-c-14-0-is-required – phd Jan 15 '19 at 16:42
  • @phd difference with the potential duplicate is that I want to install it through an IDE (Pycharm) and I correctly installed building tools and not redistributable. – Anne Aunyme Jan 15 '19 at 17:15

1 Answers1

2

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

prashant.kr.mod
  • 1,178
  • 13
  • 28
  • i know this is an old question/answer.. but I'm missing how the issue of not getting C++ install recognized, turned into using the project settings to use as the installer. I can use terminal, or the project settings, both get the same error. FOr me, this popped up after upgrading from python 3.8 to 3.9 (and creating a new venv). This Levenshtein_search package is a sub package of dedup. I can't get past the error (either via terminal or project settings) – da Bich Mar 14 '22 at 16:33