MVIG-SJTU / AlphaPose

Real-Time and Accurate Full-Body Multi-Person Pose Estimation&Tracking System
http://mvig.org/research/alphapose.html
Other
7.96k stars 1.97k forks source link

Microsoft Visual C++ 14.0 is required, but that package is not found. #947

Closed dekathomas closed 2 years ago

dekathomas commented 2 years ago

Hello, I just run this command python setup.py build develop and then I got error like this

Installed d:\skripsi-repository\alphapose\alphapose
Processing dependencies for alphapose==0.3.0+ddaf4b9
Searching for matplotlib
Reading https://pypi.tuna.tsinghua.edu.cn/simple/matplotlib/
Downloading https://pypi.tuna.tsinghua.edu.cn/packages/d6/40/c902b14e79da80d51ea3b5c76bf46830725f17b31244bc91c5a33fb15a27/matplotlib-3.5.0rc1.tar.gz#sha256=30752c0
505f73167cddc3480ff6f747a557dd6a34b54b3008f47254b4d3078d0
Best match: matplotlib 3.5.0rc1
Processing matplotlib-3.5.0rc1.tar.gz
Writing C:\Users\dekac\AppData\Local\Temp\easy_install-3iv83ue5\matplotlib-3.5.0rc1\setup.cfg
Running matplotlib-3.5.0rc1\setup.py -q bdist_egg --dist-dir C:\Users\dekac\AppData\Local\Temp\easy_install-3iv83ue5\matplotlib-3.5.0rc1\egg-dist-tmp-1o0igqbf
error: Setup script exited with
Beginning with Matplotlib 3.4, Python 3.7 or above is required.
You are using Python 3.6.13.

This may be due to an out of date pip.

Make sure you have pip >= 9.0.1.

I have tried to upgrade the python version to 3.7 but other errors come. Do you have any suggestions what I should do to fix the error? I run that script because I follow INSTALL.md. Thank you.

JohnPorter103 commented 2 years ago

image

HELLO! in line 164, setup.py, add "==3.2" after "matplotlib", it should looks like the picture above. It works for me.

JohnPorter103 commented 2 years ago

just use python3.6 , not 3.7 otherwise you will encounter another problem

dekathomas commented 2 years ago

Hello, sorry I got another error

Install `cython_bbox`...
Collecting git+https://github.com/yanfengliu/cython_bbox.git
  Cloning https://github.com/yanfengliu/cython_bbox.git to c:\users\dekac\appdata\local\temp\pip-req-build-gy98xdpx
  Running command git clone -q https://github.com/yanfengliu/cython_bbox.git 'C:\Users\dekac\AppData\Local\Temp\pip-req-build-gy98xdpx'
Building wheels for collected packages: cython-bbox
  Building wheel for cython-bbox (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Users\dekac\anaconda3\envs\alphapose\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dekac\\AppData\\Local\\Temp\\pip-req-build-gy98xdpx\\setup.py'"'"'; __file__='"'"'C:\\Users\\dekac\\AppData\\Local\\Temp\\pip-req-build-gy98xdpx\\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\dekac\AppData\Local\Temp\pip-wheel-emxfa_xu'
       cwd: C:\Users\dekac\AppData\Local\Temp\pip-req-build-gy98xdpx\
  Complete output (5 lines):
  running bdist_wheel
  running build
  running build_ext
  building 'cython_bbox' 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
  ----------------------------------------
  ERROR: Failed building wheel for cython-bbox
  Running setup.py clean for cython-bbox
Failed to build cython-bbox
Installing collected packages: cython-bbox
    Running setup.py install for cython-bbox ... error
    ERROR: Command errored out with exit status 1:
     command: 'C:\Users\dekac\anaconda3\envs\alphapose\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dekac\\AppData\\Local\\Temp\\pip-req-build-gy98xdpx\\setup.py'"'"'; __file__='"'"'C:\\Users\\dekac\\AppData\\Local\\Temp\\pip-req-build-gy98xdpx\\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\dekac\AppData\Local\Temp\pip-record-1app417v\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\dekac\anaconda3\envs\alphapose\Include\cython-bbox'
         cwd: C:\Users\dekac\AppData\Local\Temp\pip-req-build-gy98xdpx\
    Complete output (5 lines):
    running install
    running build
    running build_ext
    building 'cython_bbox' 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
    ----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Users\dekac\anaconda3\envs\alphapose\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\dekac\\AppData\\Local\\Temp\\pip-req-build-gy98xdpx\\setup.py'"'"'; __file__='"'"'C:\\Users\\dekac\\AppData\\Local\\Temp\\pip-req-build-gy98xdpx\\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\dekac\AppData\Local\Temp\pip-record-1app417v\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\dekac\anaconda3\envs\alphapose\Include\cython-bbox' Check 
the logs for full command output.

I have tried to search Microsot Visual C++ 14.0, but I don't find that version.

dekathomas commented 2 years ago

Okay guys, this problem has been solved. The solution for this problem is you have to download Microsoft Visual C++ Build Tools through this link.