mukulhase / WebWhatsapp-Wrapper

An API for sending and receiving messages over web.whatsapp [Working as of 18th May 2018]
https://webwhatsapi.readthedocs.io/en/latest/
MIT License
2.04k stars 795 forks source link

pip install requirements.txt fails - is it because I'm not using Docker? #934

Open Shahar-do opened 4 years ago

Shahar-do commented 4 years ago

Hello everyone.

In Short: I'm on windows 10, Python 3.7.6. I wish to know if Docker is mandatory. I am unable to install dependencies, and I'm not sure it's some local issue or simply installation can't be done without docker.

In Details: pip install -r requirements.txt fails becuase a specific package -it says Failed building wheel for python-axolotl-curve25519. When I try to only install this package - running pip install python-axolotl-curve25519. It also fails. cmd output:


Collecting python-axolotl-curve25519
  Using cached https://files.pythonhosted.org/packages/59/ca/c8111718bcc8da18e9b9868e784293232a58c57159a5ea18f00ee967258f/python-axolotl-curve25519-0.4.1.post2.tar.gz
Building wheels for collected packages: python-axolotl-curve25519
  Running setup.py bdist_wheel for python-axolotl-curve25519 ... error
  Complete output from command c:\users\shaha\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\shaha\\AppData\\Local\\Temp\\pip-build-2yaqq9jd\\python-axolotl-curve25519\\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\shaha\AppData\Local\Temp\tmphs1iyrr2pip-wheel- --python-tag cp36:
  c:\users\shaha\appdata\local\programs\python\python36\lib\site-packages\setuptools\dist.py:331: UserWarning: Normalizing '0.4.1-2' to '0.4.1.post2'
    normalized_version,
  running bdist_wheel
  running build
  running build_ext
  building 'axolotl_curve25519' extension
  error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

  ----------------------------------------
  **Failed building wheel for python-axolotl-curve25519**
  Running setup.py clean for python-axolotl-curve25519
Failed to build python-axolotl-curve25519
Installing collected packages: python-axolotl-curve25519
  Running setup.py install for python-axolotl-curve25519 ... error
    Complete output from command c:\users\shaha\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\shaha\\AppData\\Local\\Temp\\pip-build-2yaqq9jd\\python-axolotl-curve25519\\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\shaha\AppData\Local\Temp\pip-586b7wmv-record\install-record.txt --single-version-externally-managed --compile:
    c:\users\shaha\appdata\local\programs\python\python36\lib\site-packages\setuptools\dist.py:331: UserWarning: Normalizing '0.4.1-2' to '0.4.1.post2'
      normalized_version,
    running install
    running build
    running build_ext
    building 'axolotl_curve25519' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

    ----------------------------------------
**Command "c:\users\shaha\appdata\local\programs\python\python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\shaha\\AppData\\Local\\Temp\\pip-build-2yaqq9jd\\python-axolotl-curve25519\\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\shaha\AppData\Local\Temp\pip-586b7wmv-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\shaha\AppData\Local\Temp\pip-build-2yaqq9jd\python-axolotl-curve25519\**
You are using pip version 9.0.1, however version 20.2.2 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.```

I Googled this error of course and did not find any good solution.

Thanks the helpers!
fortem0 commented 4 years ago

I have the exact same issue

erickythierry commented 4 years ago

I only managed to make it work that way in linux

pujangga123 commented 4 years ago

I install standalone Microsoft Visual C++ 14.0 ... fail Then I try install Microsoft Visual C++ using Microsoft C++ Build Tools from https://visualstudio.microsoft.com/visual-cpp-build-tools/ It solve the problem. Install MSVC using Build Tools takes about 4GB disk space. But at least it works! :-)

erickythierry commented 3 years ago

I install standalone Microsoft Visual C++ 14.0 ... fail Then I try install Microsoft Visual C++ using Microsoft C++ Build Tools from https://visualstudio.microsoft.com/visual-cpp-build-tools/ It solve the problem. Install MSVC using Build Tools takes about 4GB disk space. But at least it works! :-)

thank you so much. this solution was perfect.