scoder / fastrlock

A fast RLock implementation for CPython
MIT License
23 stars 10 forks source link

pip install fails on Windows 10 #6

Closed FlorinAndrei closed 5 years ago

FlorinAndrei commented 5 years ago

Windows 10 CUDA 10.0 python 3.7.4 pip 19.0.3

CUDA and cuDNN are installed and are working correctly - I've tested with tensorflow-gpu and it works fine.

Visual Studio is installed.

Trying to install fastrlock (really - trying to install cupy, for which fastrlock is a dependency) with pip and it fails. It's probably something simple but I'm a total newbie to Visual Studio (I'm more at home on Linux).

C:\Users\florin>pip3 install --user fastrlock
Collecting fastrlock
  Using cached https://files.pythonhosted.org/packages/8f/ff/6777b85fdbc6efd572a2b713e044c29f5f01ca8b1c74f8d94b427bac60c3/fastrlock-0.4.tar.gz
Building wheels for collected packages: fastrlock
  Building wheel for fastrlock (setup.py) ... error
  Complete output from command "c:\program files\python37\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\florin\\AppData\\Local\\Temp\\pip-install-479f2_e3\\fastrlock\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\florin\AppData\Local\Temp\pip-wheel-csg06n1t --python-tag cp37:
  building without Cython
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.7
  creating build\lib.win-amd64-3.7\fastrlock
  copying fastrlock\__init__.py -> build\lib.win-amd64-3.7\fastrlock
  copying fastrlock\rlock.pxd -> build\lib.win-amd64-3.7\fastrlock
  copying fastrlock\__init__.pxd -> build\lib.win-amd64-3.7\fastrlock
  copying fastrlock\_lock.pxi -> build\lib.win-amd64-3.7\fastrlock
  running build_ext
  building 'fastrlock.rlock' extension
  error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

  ----------------------------------------
  Failed building wheel for fastrlock
  Running setup.py clean for fastrlock
Failed to build fastrlock
Installing collected packages: fastrlock
  Running setup.py install for fastrlock ... error
    Complete output from command "c:\program files\python37\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\florin\\AppData\\Local\\Temp\\pip-install-479f2_e3\\fastrlock\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\florin\AppData\Local\Temp\pip-record-pqknhnzg\install-record.txt --single-version-externally-managed --compile --user --prefix=:
    building without Cython
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.7
    creating build\lib.win-amd64-3.7\fastrlock
    copying fastrlock\__init__.py -> build\lib.win-amd64-3.7\fastrlock
    copying fastrlock\rlock.pxd -> build\lib.win-amd64-3.7\fastrlock
    copying fastrlock\__init__.pxd -> build\lib.win-amd64-3.7\fastrlock
    copying fastrlock\_lock.pxi -> build\lib.win-amd64-3.7\fastrlock
    running build_ext
    building 'fastrlock.rlock' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

    ----------------------------------------
Command ""c:\program files\python37\python.exe" -u -c "import setuptools, tokenize;__file__='C:\\Users\\florin\\AppData\\Local\\Temp\\pip-install-479f2_e3\\fastrlock\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\florin\AppData\Local\Temp\pip-record-pqknhnzg\install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in C:\Users\florin\AppData\Local\Temp\pip-install-479f2_e3\fastrlock\
You are using pip version 19.0.3, however version 19.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
scoder commented 5 years ago

I uploaded windows wheels to PyPI.