0

I am trying to install some packages into a venv I created in my local folder. For some reason I get errors for everything I try.

For example, when I do pip install numpy, I get the following result:

copying Cython\Utility\arrayarray.h -> build\lib.win-amd64-3.8\Cython\Utility
copying Cython\Utility\CppSupport.cpp -> build\lib.win-amd64-3.8\Cython\Utility
running build_ext
building 'Cython.Plex.Scanners' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

And then this error:

Command "<path-to-venv>\Scripts\python.exe <path-to-venv>\lib\site-packages\pip-19.0.3-py3.8.egg\pip install --ignore-installed --no-user --prefix <my-cdrive-user-directory>\AppData\Local\Temp\pip-build-env-62rsug_4\overlay --no-warn-
script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel Cython>=0.29.14" failed with error code 1 in None

Again, I get none of this if I do a simple pip install numpy in my base environment. I don't know why having a venv would cause an error related to needing Visual C++ 14.0 or some sort of Cython version error.

What's more, this error is different for each thing I try to do, making it difficult to pinpoint the issue. For example, if I try to install pandas, I guet this

RuntimeError: Running cythonize failed!
Cythonizing sources
Command "python setup.py egg_info" failed with error code 1 in <my-cdrive-user-dir>\AppData\Local\Temp\pip-install-x5t_s0yg\pandas\

I have set up my environments using PyCharm and I am running the Win-64 standard Python 3.8 distribution. I am running this at work so I don't have admin priveleges and wonder whether this may be having an impact. Any help with understanding the possible root of these issues so I can start fixing it would be very welcome.

teepee
  • 2,620
  • 2
  • 22
  • 47

0 Answers0