Problem installing pdpbox, when building wheels for matplotlib - python

I'm trying to instal pdpbox in my local computer with Windows 10 and python 3.8. It tries to install matplotlib 3.1.1 then tries with current matplotlib 3.3.4. It gives an error message.
The following happens:
Building wheels for collected packages: matplotlib
Building wheel for matplotlib (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\juanc\\AppData\\Local\\Temp\\pip-install-bl7sj8y8\\matplotlib_af49ebe1097845999252c2ef2a680b4e\\setup.py'"'"'; __file__='"'"'C:\\Users\\juanc\\AppData\\Local\\Temp\\pip-install-bl7sj8y8\\matplotlib_af49ebe1097845999252c2ef2a680b4e\\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\juanc\AppData\Local\Temp\pip-wheel-iem_yn01'
cwd: C:\Users\juanc\AppData\Local\Temp\pip-install-bl7sj8y8\matplotlib_af49ebe1097845999252c2ef2a680b4e\
Complete output (499 lines):
================================================================================
Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
matplotlib: yes [3.1.1]
python: yes [3.8.5 (tags/v3.8.5:580fbb0, Jul 20 2020, 15:57:54) [MSC
v.1924 64 bit (AMD64)]]
platform: yes [win32]
OPTIONAL SUBPACKAGES
sample_data: yes [installing]
tests: no [skipping due to configuration]
OPTIONAL BACKEND EXTENSIONS
agg: yes [installing]
tkagg: yes [installing; run-time loading from Python Tcl/Tk]
macosx: no [Mac OS-X only]
OPTIONAL PACKAGE DATA
dlls: no [skipping due to configuration]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
copying lib\pylab.py -> build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\afm.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\animation.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\artist.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\axis.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\backend_bases.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\backend_managers.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\backend_tools.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\bezier.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\blocking_input.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\category.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\cm.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\collections.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\colorbar.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\colors.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\container.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\contour.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\dates.py -> build\lib.win-amd64-3.8\matplotlib
copying lib\matplotlib\docstring.py -> build\lib.win-amd64-3.8\matplotlib
...
copying lib\matplotlib\backends\web_backend\jquery-ui-1.12.1\jquery-ui.js -> build\lib.win-amd64-3.8\matplotlib\backends\web_backend\jquery-ui-1.12.1
copying lib\matplotlib\mpl-data\fonts\afm\cmex10.afm -> build\lib.win-amd64-3.8\matplotlib\mpl-data\fonts\afm
copying lib\matplotlib\mpl-data\fonts\ttf\LICENSE_STIX -> build\lib.win-amd64-3.8\matplotlib\mpl-data\fonts\ttf
copying lib\matplotlib\mpl-data\stylelib\classic.mplstyle -> build\lib.win-amd64-3.8\matplotlib\mpl-data\stylelib
copying lib\matplotlib\mpl-data\images\filesave.pdf -> build\lib.win-amd64-3.8\matplotlib\mpl-data\images
copying lib\matplotlib\backends\web_backend\nbagg_uat.ipynb -> build\lib.win-amd64-3.8\matplotlib\backends\web_backend
UPDATING build\lib.win-amd64-3.8\matplotlib\_version.py
set build\lib.win-amd64-3.8\matplotlib\_version.py to '3.1.1'
running build_ext
building 'matplotlib.ft2font' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Failed building wheel for matplotlib
Running setup.py clean for matplotlib
Failed to build matplotlib
Installing collected packages: matplotlib, pdpbox
Attempting uninstall: matplotlib
Found existing installation: matplotlib 3.3.4
Uninstalling matplotlib-3.3.4:
Successfully uninstalled matplotlib-3.3.4
Running setup.py install for matplotlib ... error
ERROR: Command errored out with exit status 1:
command: 'c:\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\juanc\\AppData\\Local\\Temp\\pip-install-bl7sj8y8\\matplotlib_af49ebe1097845999252c2ef2a680b4e\\setup.py'"'"'; __file__='"'"'C:\\Users\\juanc\\AppData\\Local\\Temp\\pip-install-bl7sj8y8\\matplotlib_af49ebe1097845999252c2ef2a680b4e\\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\juanc\AppData\Local\Temp\pip-record-bd1ttf50\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python38\Include\matplotlib'
cwd: C:\Users\juanc\AppData\Local\Temp\pip-install-bl7sj8y8\matplotlib_af49ebe1097845999252c2ef2a680b4e\
SAME HAPPENS HERE AS ABOVE
ERROR: Command errored out with exit status 1: 'c:\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\juanc\\AppData\\Local\\Temp\\pip-install-bl7sj8y8\\matplotlib_af49ebe1097845999252c2ef2a680b4e\\setup.py'"'"'; __file__='"'"'C:\\Users\\juanc\\AppData\\Local\\Temp\\pip-install-bl7sj8y8\\matplotlib_af49ebe1097845999252c2ef2a680b4e\\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\juanc\AppData\Local\Temp\pip-record-bd1ttf50\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python38\Include\matplotlib' Check the logs for full command output.
Did anyone had a similar problem? I don't know how to avoid for pdp to look for older version of matplotlib. Also it may be a configuration problem. Thanks

error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

Related

I could not install mysqlclient

pip install mysqlclient
Collecting mysqlclient
Using cached mysqlclient-2.0.3.tar.gz (88 kB)
Using legacy setup.py install for mysqlclient, since package 'wheel' is not installed.
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\blackknight\desktop\simpleblog\myenv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Blackknight\\AppData\\Local\\Temp\\pip-install-85jgwelt\\mysqlclient\\setup.py'"'"'; __file__='"'"'C:\\Users\\Blackknight\\AppData\\Local\\Temp\\pip-install-85jgwelt\\mysqlclient\\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\Blackknight\AppData\Local\Temp\pip-record-7y2zgqqa\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\blackknight\desktop\simpleblog\myenv\include\site\python3.8\mysqlclient'
cwd: C:\Users\Blackknight\AppData\Local\Temp\pip-install-85jgwelt\mysqlclient\
Complete output (23 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\_exceptions.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.8\MySQLdb
creating build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.8\MySQLdb\constants
running build_ext
building 'MySQLdb._mysql' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\blackknight\desktop\simpleblog\myenv\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Blackknight\\AppData\\Local\\Temp\\pip-install-85jgwelt\\mysqlclient\\setup.py'"'"'; __file__='"'"'C:\\Users\\Blackknight\\AppData\\Local\\Temp\\pip-install-85jgwelt\\mysqlclient\\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\Blackknight\AppData\Local\Temp\pip-record-7y2zgqqa\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\blackknight\desktop\simpleblog\myenv\include\site\python3.8\mysqlclient' Check the logs for full command output.
WARNING: You are using pip version 20.1.1; however, version 21.0.1 is available.
You should consider upgrading via the 'c:\users\blackknight\desktop\simpleblog\myenv\scripts\python.exe -m pip install --upgrade pip' command.
You need to install the visual c++ build tools. you can download them Here. Then try installing mysqlclient again.
or
Second Option you aslo can binary install it by.
pip install --only-binary :all: mysqlclient
Optional:
it's also better to upgrade your pip runing pip install --upgrade pip

i am getting error while installing mysqlclient on windows 10 no library is supproted

Running setup.py clean for mysqlclient
Failed to build mysqlclient
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\uaahacker\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\uaahacker\AppData\Local\Temp\pip-install-icjkjmap\mysqlclient_8b5f49f509624395ab7dd2c4d4a21457\setup.py'"'"'; file='"'"'C:\Users\uaahacker\AppData\Local\Temp\pip-install-icjkjmap\mysqlclient_8b5f49f509624395ab7dd2c4d4a21457\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\uaahacker\AppData\Local\Temp\pip-record-62876lx5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\uaahacker\appdata\local\programs\python\python38-32\Include\mysqlclient'
cwd: C:\Users\uaahacker\AppData\Local\Temp\pip-install-icjkjmap\mysqlclient_8b5f49f509624395ab7dd2c4d4a21457
Complete output (23 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\MySQLdb
copying MySQLdb_init_.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb_exceptions.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\connections.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\converters.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\release.py -> build\lib.win32-3.8\MySQLdb
copying MySQLdb\times.py -> build\lib.win32-3.8\MySQLdb
creating build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants_init_.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win32-3.8\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win32-3.8\MySQLdb\constants
running build_ext
building 'MySQLdb._mysql' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\uaahacker\appdata\local\programs\python\python38-32\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\uaahacker\AppData\Local\Temp\pip-install-icjkjmap\mysqlclient_8b5f49f509624395ab7dd2c4d4a21457\setup.py'"'"'; file='"'"'C:\Users\uaahacker\AppData\Local\Temp\pip-install-icjkjmap\mysqlclient_8b5f49f509624395ab7dd2c4d4a21457\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\uaahacker\AppData\Local\Temp\pip-record-62876lx5\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\uaahacker\appdata\local\programs\python\python38-32\Include\mysqlclient' Check the logs for full command output.
There is no package on pypi for the 32-bit version of Python. Only for 64-bit Python.
And if you install mysqlclient from there, naturally, sources that need to be compiled will be installed.
And for 32-bit Python, the compiled package is available at https://www.lfd.uci.edu/~gohlke/pythonlibs/.
it is literally telling you how to solve the ptoblem in the error
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
just download visualstudio build tools

Unable to install python "Scalene" module

I'm trying to install Scalene module for profiling in Python.
I've tried two ways so far pip install scalene and pip install -U scalene but both gives me the following error:
Running setup.py install for scalene ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\deepanshu\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\DEEPAN~1\\AppData\\Local\\Temp\\pip-install-di4jsn85\\scalene\\setup.py'"'"'; __file__='"'"'C:\\Users\\DEEPAN~1\\AppData\\Local\\Temp\\pip-install-di4jsn85\\scalene\\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\DEEPAN~1\AppData\Local\Temp\pip-record-hs0b9thb\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\deepanshu\appdata\local\programs\python\python37\Include\scalene'
cwd: C:\Users\DEEPAN~1\AppData\Local\Temp\pip-install-di4jsn85\scalene\
Complete output (40 lines):
WARNING: The wheel package is not available.
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\scalene
copying scalene\adaptive.py -> build\lib.win-amd64-3.7\scalene
copying scalene\leak_analysis.py -> build\lib.win-amd64-3.7\scalene
copying scalene\replacement_exit.py -> build\lib.win-amd64-3.7\scalene
copying scalene\replacement_fork.py -> build\lib.win-amd64-3.7\scalene
copying scalene\replacement_lock.py -> build\lib.win-amd64-3.7\scalene
copying scalene\replacement_pjoin.py -> build\lib.win-amd64-3.7\scalene
copying scalene\replacement_poll_selector.py -> build\lib.win-amd64-3.7\scalene
copying scalene\replacement_thread_join.py -> build\lib.win-amd64-3.7\scalene
copying scalene\runningstats.py -> build\lib.win-amd64-3.7\scalene
copying scalene\scalene_arguments.py -> build\lib.win-amd64-3.7\scalene
copying scalene\scalene_magics.py -> build\lib.win-amd64-3.7\scalene
copying scalene\scalene_output.py -> build\lib.win-amd64-3.7\scalene
copying scalene\scalene_profiler.py -> build\lib.win-amd64-3.7\scalene
copying scalene\scalene_statistics.py -> build\lib.win-amd64-3.7\scalene
copying scalene\sparkline.py -> build\lib.win-amd64-3.7\scalene
copying scalene\syntaxline.py -> build\lib.win-amd64-3.7\scalene
copying scalene\__init__.py -> build\lib.win-amd64-3.7\scalene
copying scalene\__main__.py -> build\lib.win-amd64-3.7\scalene
running egg_info
writing scalene.egg-info\PKG-INFO
writing dependency_links to scalene.egg-info\dependency_links.txt
writing entry points to scalene.egg-info\entry_points.txt
writing requirements to scalene.egg-info\requires.txt
writing top-level names to scalene.egg-info\top_level.txt
reading manifest file 'scalene.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'scalene.egg-info\SOURCES.txt'
copying scalene\libscalene.dylib -> build\lib.win-amd64-3.7\scalene
copying scalene\libscalene.so -> build\lib.win-amd64-3.7\scalene
copying scalene\scalene-usage.txt -> build\lib.win-amd64-3.7\scalene
running build_ext
building 'get_line_atomic' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\deepanshu\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\DEEPAN~1\\AppData\\Local\\Temp\\pip-install-di4jsn85\\scalene\\setup.py'"'"'; __file__='"'"'C:\\Users\\DEEPAN~1\\AppData\\Local\\Temp\\pip-install-di4jsn85\\scalene\\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\DEEPAN~1\AppData\Local\Temp\pip-record-hs0b9thb\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\deepanshu\appdata\local\programs\python\python37\Include\scalene' Check the logs for full command output.
Please suggest a way to resolve this error.
I'm using python 3.7 on windows 10.
Try installing an older version:
e.g. pip install scalene==0.9.16
Though I'm not sure whether it supports Windows 10 or not

'Command errored out with exit status 1' getting this error message while installing mysql client in python

(env) C:\Users\shreya kumar\Documents\django website\audit_website>pip install mysqlclient
Collecting mysqlclient
Using cached mysqlclient-2.0.1.tar.gz (87 kB)
Using legacy 'setup.py install' for mysqlclient, since package 'wheel' is not installed.
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\shreya kumar\documents\django website\env\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\shreya kumar\\AppData\\Local\\Temp\\pip-install-7l4hf6a3\\mysqlclient\\setup.py'"'"'; __file__='"'"'C:\\Users\\shreya kumar\\AppData\\Local\\Temp\\pip-install-7l4hf6a3\\mysqlclient\\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\shreya kumar\AppData\Local\Temp\pip-record-npl_lx21\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\shreya kumar\documents\django website\env\include\site\python3.9\mysqlclient'
cwd: C:\Users\shreya kumar\AppData\Local\Temp\pip-install-7l4hf6a3\mysqlclient\
Complete output (23 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win-amd64-3.9\MySQLdb
copying MySQLdb\_exceptions.py -> build\lib.win-amd64-3.9\MySQLdb
copying MySQLdb\connections.py -> build\lib.win-amd64-3.9\MySQLdb
copying MySQLdb\converters.py -> build\lib.win-amd64-3.9\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win-amd64-3.9\MySQLdb
copying MySQLdb\release.py -> build\lib.win-amd64-3.9\MySQLdb
copying MySQLdb\times.py -> build\lib.win-amd64-3.9\MySQLdb
creating build\lib.win-amd64-3.9\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-3.9\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-3.9\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win-amd64-3.9\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win-amd64-3.9\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-3.9\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-3.9\MySQLdb\constants
running build_ext
building 'MySQLdb._mysql' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\shreya kumar\documents\django website\env\scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\shreya kumar\\AppData\\Local\\Temp\\pip-install-7l4hf6a3\\mysqlclient\\setup.py'"'"'; __file__='"'"'C:\\Users\\shreya kumar\\AppData\\Local\\Temp\\pip-install-7l4hf6a3\\mysqlclient\\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\shreya kumar\AppData\Local\Temp\pip-record-npl_lx21\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\shreya kumar\documents\django website\env\include\site\python3.9\mysqlclient' Check the logs for full command output.
WARNING: You are using pip version 20.2.3; however, version 20.2.4 is available.
You should consider upgrading via the 'c:\users\shreya kumar\documents\django website\env\scripts\python.exe -m pip install --upgrade pip' command.
(env) C:\Users\shreya kumar\Documents\django website\audit_website>

psycopg2: Microsoft Visual C++ 14.0 or greater is required

(venv) C:\Cursos\Django\personas_django\sap>python -m pip install psycopg2
Collecting psycopg2
Using cached psycopg2-2.8.6.tar.gz (383 kB)
Using legacy 'setup.py install' for psycopg2, since package 'wheel' is not installed.
Installing collected packages: psycopg2
Running setup.py install for psycopg2 ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Cursos\Django\personas_django\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Josefina Pelliza\\App
Data\\Local\\Temp\\pip-install-9z8d6fx3\\psycopg2\\setup.py'"'"'; __file__='"'"'C:\\Users\\Josefina Pelliza\\AppData\\Local\\Temp\\pip-install-9z8d6fx3\\psycopg2\\se
tup.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\Josefina Pelliza\AppData\Local\Temp\pip-record-ke5p9x11\install-record.txt' --single-version-externally-managed --compile --instal
l-headers 'C:\Cursos\Django\personas_django\venv\include\site\python3.9\psycopg2'
cwd: C:\Users\Josefina Pelliza\AppData\Local\Temp\pip-install-9z8d6fx3\psycopg2\
Complete output (22 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\psycopg2
copying lib\compat.py -> build\lib.win-amd64-3.9\psycopg2
copying lib\errorcodes.py -> build\lib.win-amd64-3.9\psycopg2
copying lib\errors.py -> build\lib.win-amd64-3.9\psycopg2
copying lib\extensions.py -> build\lib.win-amd64-3.9\psycopg2
copying lib\extras.py -> build\lib.win-amd64-3.9\psycopg2
copying lib\pool.py -> build\lib.win-amd64-3.9\psycopg2
copying lib\sql.py -> build\lib.win-amd64-3.9\psycopg2
copying lib\tz.py -> build\lib.win-amd64-3.9\psycopg2
copying lib\_ipaddress.py -> build\lib.win-amd64-3.9\psycopg2
copying lib\_json.py -> build\lib.win-amd64-3.9\psycopg2
copying lib\_lru_cache.py -> build\lib.win-amd64-3.9\psycopg2
copying lib\_range.py -> build\lib.win-amd64-3.9\psycopg2
copying lib\__init__.py -> build\lib.win-amd64-3.9\psycopg2
running build_ext
building 'psycopg2._psycopg' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Cursos\Django\personas_django\venv\Scripts\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"
'C:\\Users\\Josefina Pelliza\\AppData\\Local\\Temp\\pip-install-9z8d6fx3\\psycopg2\\setup.py'"'"'; __file__='"'"'C:\\Users\\Josefina Pelliza\\AppData\\Local\\Temp\\p
ip-install-9z8d6fx3\\psycopg2\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(c
ompile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Josefina Pelliza\AppData\Local\Temp\pip-record-ke5p9x11\install-record.txt' --single-version-exte
rnally-managed --compile --install-headers 'C:\Cursos\Django\personas_django\venv\include\site\python3.9\psycopg2' Check the logs for full command output.
You need to install the Microsoft Build tool.
You can use this link
This should solve your problem. If any issues, please feel free to ask.

Categories

Resources