python3.5.i cant install third-party libraries for python by using instructions " python setup.py install" - python-3.5

When I tried to install third-party libraries for python3.5,something is wrong like that
E:\IE\pycocotools-2.0.0>python setup.py build
running build
running build_py
running build_ext
error: [WinError 2] The system cannot find the file specified
the setup.py is from:https://github.com/philferriere/cocoapi
and i want to install cocoAPI to use coco dataSets.
addtions:1 .i had installed vs2017(vc++ environment) in my computer

Related

Cannot install face_recognition or dlib on AWS linux

When i run
pip install face_recognition (or pip install dlib)
i get this error:
Installing collected packages: dlib, face-recognition-models, face-recognition
Running setup.py install for dlib ... error
running install
running build
running build_py
package init file 'tools/python/dlib/init.py' not found (or not a regular file)
running build_ext
Building extension for Python 3.7.15 (default, Oct 31 2022, 22:44:31)
Invoking CMake setup: 'cmake /tmp/pip-install-ahft03in/dlib/tools/python -DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-ahft03in/dlib/build/lib.linux-x86_64-3.7 -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_BUILD_TYPE=Release'
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:14 (project):
No CMAKE_C_COMPILER could be found.
you need certain dependencies to do this installation perfectly
You can use this as a guide : https://www.smcarlson.com/2019/02/24/installing-dlib-on-aws-lambda/

I am trying to install django-heroku on my Mac but am getting the below error

Error:
pg_config executable not found.
pg_config is required to build psycopg2 from source. Please add the directory
containing pg_config to the $PATH or specify the full executable path with the
option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
If you prefer to avoid building psycopg2 from source, please install the PyPI
'psycopg2-binary' package instead.
For further information please check the 'doc/src/install.rst' file (also at
<https://www.psycopg.org/docs/install.html>).
----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
I am a beginner so my knowledge is pretty loose on all factors above. A simplified step-by-step explanation would be much appreciated.
You can try pip install psycopg2-binary then install django-heroku again.
The error is just simply saying that your computer can't find psycopg2-binary package

Failed building wheel for gfootball

I am getting this error while installing Google research football.
Failed building wheel for gfootball
running build_ext
'gfootball' is not recognized as an internal or external command,
operable program or batch file.
Google Research Football compilation failed
Failed building wheel for gfootball
Running setup.py clean for gfootball
Running setup.py bdist_wheel for baselines ... done
Stored in directory: C:\Users\User\AppData\Local\Temp\pip-ephem-wheel-cache-2bdp8pkh\wheels\47\4b\a3\0a25aebc24e2f3302802b56aef9855b3bc7bb051cc5bc3debd
Running setup.py bdist_wheel for wrapt ... done
Stored in directory: C:\Users\User\AppData\Local\pip\Cache\wheels\d7\de\2e\efa132238792efb6459a96e85916ef8597fcb3d2ae51590dfd
Successfully built baselines wrapt
Failed to build gfootball
tensorflow 1.12.0 has requirement tensorboard<1.13.0,>=1.12.0, but you'll have tensorboard 1.14.0 which is incompatible.
It says in the error message that your tensorboard version is incompatible. You'll need to downgrade the module by running
pip install -I tensorboard==1.13.0

Installing Fiona on python virtualenv using Windows

I created a virtual environment of python on my Windows computer. I successfully downloaded GDAL 2.4.1 and linked it to python, I am trying to install Fiona using
pip install fiona
but I get this:
ERROR: Complete output from command python setup.py egg_info:
ERROR: A GDAL API version must be specified. Provide a path to gdal-config using a GDAL_CONFIG environment variable or use a GDAL_VERSION environment variable.
----------------------------------------
ERROR: Command "python setup.py egg_info" failed with error code 1 in
C:\Users\marcb\AppData\Local\Temp\pip-install-dua0wlxg\fiona\
Any thoughts on what to do? I need to use the virtualenv and not conda (I already have it successfully installed on anaconda)

How I can solve pyaudio installation problem in (python3.7 64bit)

when I am install pyadio through cmd there was genrate error that is
***Collecting pyaudio
Complete output from command "c:\users\this pc\appdata\local\programs\python\python37\python.exe" -u -c "import setuptools, tokenize;file='C:\Users\THISPC~1\AppData\Local\Temp\
compile:
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
copying src\pyaudio.py -> build\lib.win-amd64-3.7
running build_ext
building '_portaudio' 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***
But i am already install Microsoft visual c++ 14.0
When we try to install Pyaudio on Windows it gives us lots of dependencies errors.
The best solution i am able to figure out is use conda environment to resove this.
Once the conda environment is setup in Pycharm(IDE) i am using then we can simply install Pyaudio usign Pip command.
pip install PyAudio
Download and Install Anaconda3 using the link below:-
https://www.anaconda.com/products/individual
Hope this helps.

Resources