Installing mod_wsgi with pip install causes an error [duplicate] - python

This question already has answers here:
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
(36 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages?
(9 answers)
Closed last year.
I am trying to install mod_wsgi so I can run my Django app with Apache.
However when I use pip install mod_wsgi I get the following error:
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_w59fztq\\mod-wsgi_5a0ae0135da94aadbb09b85297022451\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_w59fztq\\mod-wsgi_5a0ae0135da94aadbb09b85297022451\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-mwvtbeia\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Admin\AppData\Roaming\Python\Python310\Include\mod-wsgi'
cwd: C:\Users\Admin\AppData\Local\Temp\pip-install-_w59fztq\mod-wsgi_5a0ae0135da94aadbb09b85297022451\
Complete output (24 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\mod_wsgi
copying src\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi
creating build\lib.win-amd64-3.10\mod_wsgi\server
copying src\server\apxs_config.py -> build\lib.win-amd64-3.10\mod_wsgi\server
copying src\server\environ.py -> build\lib.win-amd64-3.10\mod_wsgi\server
copying src\server\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\server
creating build\lib.win-amd64-3.10\mod_wsgi\server\management
copying src\server\management\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\server\management
creating build\lib.win-amd64-3.10\mod_wsgi\server\management\commands
copying src\server\management\commands\runmodwsgi.py -> build\lib.win-amd64-3.10\mod_wsgi\server\management\commands
copying src\server\management\commands\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\server\management\commands
creating build\lib.win-amd64-3.10\mod_wsgi\docs
copying docs\_build\html\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\docs
creating build\lib.win-amd64-3.10\mod_wsgi\images
copying images\__init__.py -> build\lib.win-amd64-3.10\mod_wsgi\images
copying images\snake-whiskey.jpg -> build\lib.win-amd64-3.10\mod_wsgi\images
running build_ext
building 'mod_wsgi.server.mod_wsgi' 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:\Program Files\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_w59fztq\\mod-wsgi_5a0ae0135da94aadbb09b85297022451\\setup.py'"'"'; __file__='"'"'C:\\Users\\Admin\\AppData\\Local\\Temp\\pip-install-_w59fztq\\mod-wsgi_5a0ae0135da94aadbb09b85297022451\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Admin\AppData\Local\Temp\pip-record-mwvtbeia\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\Admin\AppData\Roaming\Python\Python310\Include\mod-wsgi' Check the logs for full command output.
I have no idea what the issue here could be..

Related

Download error aiocsv. How to install the module?

Please help me with the download error.
I am trying to install the aiocsv library for my project, however when downloading with
pip install aiocsv getting error.
How can I fix it and install this module?
error code:
pip install aiocsv
Collecting aiocsv
Using cached aiocsv-1.2.3.tar.gz (62 kB)
Building wheels for collected packages: aiocsv
Building wheel for aiocsv (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\professional\appdata\local\programs\python\python39-32\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Professional\\AppData\\Local\\Temp\\pip-install-u9fs0atd\\aiocsv_f33954bb06d443e99eaccd0d3ef87399\\setup.py'"'"'; __file__='"'"'C:\\Users\\Professional\\AppData\\Local\\Temp\\pip-install-u9fs0atd\\aiocsv_f33954bb06d443e99eaccd0d3ef87399\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\Professional\AppData\Local\Temp\pip-wheel-2xniq_zi'
cwd: C:\Users\Professional\AppData\Local\Temp\pip-install-u9fs0atd\aiocsv_f33954bb06d443e99eaccd0d3ef87399\
Complete output (18 lines):
running bdist_wheel
running build
running build_py
file aiocsv.py (for module aiocsv) not found
creating build
creating build\lib.win32-3.9
creating build\lib.win32-3.9\aiocsv
copying aiocsv\parser.py -> build\lib.win32-3.9\aiocsv
copying aiocsv\protocols.py -> build\lib.win32-3.9\aiocsv
copying aiocsv\readers.py -> build\lib.win32-3.9\aiocsv
copying aiocsv\writers.py -> build\lib.win32-3.9\aiocsv
copying aiocsv\__init__.py -> build\lib.win32-3.9\aiocsv
copying aiocsv\py.typed -> build\lib.win32-3.9\aiocsv
copying aiocsv\_parser.pyi -> build\lib.win32-3.9\aiocsv
file aiocsv.py (for module aiocsv) not found
running build_ext
building 'aiocsv._parser' 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 aiocsv
Running setup.py clean for aiocsv
Failed to build aiocsv
Installing collected packages: aiocsv
Running setup.py install for aiocsv ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\professional\appdata\local\programs\python\python39-32\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Professional\\AppData\\Local\\Temp\\pip-install-u9fs0atd\\aiocsv_f33954bb06d443e99eaccd0d3ef87399\\setup.py'"'"'; __file__='"'"'C:\\Users\\Professional\\AppData\\Local\\Temp\\pip-install-u9fs0atd\\aiocsv_f33954bb06d443e99eaccd0d3ef87399\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Professional\AppData\Local\Temp\pip-record-nyjq06ux\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\professional\appdata\local\programs\python\python39-32\Include\aiocsv'
cwd: C:\Users\Professional\AppData\Local\Temp\pip-install-u9fs0atd\aiocsv_f33954bb06d443e99eaccd0d3ef87399\
Complete output (18 lines):
running install
running build
running build_py
file aiocsv.py (for module aiocsv) not found
creating build
creating build\lib.win32-3.9
creating build\lib.win32-3.9\aiocsv
copying aiocsv\parser.py -> build\lib.win32-3.9\aiocsv
copying aiocsv\protocols.py -> build\lib.win32-3.9\aiocsv
copying aiocsv\readers.py -> build\lib.win32-3.9\aiocsv
copying aiocsv\writers.py -> build\lib.win32-3.9\aiocsv
copying aiocsv\__init__.py -> build\lib.win32-3.9\aiocsv
copying aiocsv\py.typed -> build\lib.win32-3.9\aiocsv
copying aiocsv\_parser.pyi -> build\lib.win32-3.9\aiocsv
file aiocsv.py (for module aiocsv) not found
running build_ext
building 'aiocsv._parser' 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

How do I fix an Error with pip install bllipparser?

I was trying to install the bllipparser for a project and used the command pip install bllipparser in the terminal, but I got the following error.
Installing collected packages: bllipparser
Running setup.py install for bllipparser ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\1000284172\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\1000284172\\AppData\\Local\\Temp\\pip-install-aik213us\\bllipparser_736f2d4697234f66883f283f0d23bdcf\\setup.py'"'"'; __file__='"'"'C:\\Users\\1000284172\\AppData\\Local\\Temp\\pip-install-aik213us\\bllipparser_736f2d4697234f66883f283f0d23bdcf\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\1000284172\AppData\Local\Temp\pip-record-dvw0bufb\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\1000284172\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\bllipparser'
cwd: C:\Users\1000284172\AppData\Local\Temp\pip-install-aik213us\bllipparser_736f2d4697234f66883f283f0d23bdcf\
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\CharniakParser.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\JohnsonReranker.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\ModelFetcher.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\ParsingShell.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\RerankerFeatureCorpus.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\RerankingParser.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\Utility.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\__init__.py -> build\lib.win-amd64-3.9\bllipparser
copying python\bllipparser\__main__.py -> build\lib.win-amd64-3.9\bllipparser
running build_ext
building 'bllipparser._CharniakParser' 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\1000284172\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\1000284172\\AppData\\Local\\Temp\\pip-install-aik213us\\bllipparser_736f2d4697234f66883f283f0d23bdcf\\setup.py'"'"'; __file__='"'"'C:\\Users\\1000284172\\AppData\\Local\\Temp\\pip-install-aik213us\\bllipparser_736f2d4697234f66883f283f0d23bdcf\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\1000284172\AppData\Local\Temp\pip-record-dvw0bufb\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\1000284172\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\Include\bllipparser' Check the logs for full command output.
Is there any issue with the installation method? How do I resolve this?
You are missing a compiler as your error states:
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/
However, even if you get that fixed, this package is not really compatible with windows, see this github issue. So you are probably better of switching to a different OS or a different package

ERROR: Command errored out with exit status 1: (Command Prompt) [duplicate]

This question already has answers here:
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
(36 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
Installing MS C++ 14.0 for python without Visual Studio
(3 answers)
Closed 1 year ago.
I get an error with my command prompt. I tried pip install notebook from Jupyter, but some errors came. I appreciate anyone who views or answers, thanks for your time!
ERROR: Command errored out with exit status 1:
command: 'c:\users\ali\appdata\local\programs\python\python38-32\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-1eke7zh0\\pywinpty_541aba1e831148ec8ed9409eefc720d1\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-1eke7zh0\\pywinpty_541aba1e831148ec8ed9409eefc720d1\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Ali\AppData\Local\Temp\pip-record-brdl12uh\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ali\appdata\local\programs\python\python38-32\Include\pywinpty'
cwd: C:\Users\Ali\AppData\Local\Temp\pip-install-1eke7zh0\pywinpty_541aba1e831148ec8ed9409eefc720d1\
Complete output (19 lines):
running install
running build
running build_py
creating build
creating build\lib.win32-3.8
creating build\lib.win32-3.8\winpty
copying winpty\ptyprocess.py -> build\lib.win32-3.8\winpty
copying winpty\winpty_wrapper.py -> build\lib.win32-3.8\winpty
copying winpty\__init__.py -> build\lib.win32-3.8\winpty
creating build\lib.win32-3.8\winpty\tests
copying winpty\tests\test_cywinpty.py -> build\lib.win32-3.8\winpty\tests
copying winpty\tests\test_ptyprocess.py -> build\lib.win32-3.8\winpty\tests
copying winpty\tests\test_winpty_wrapper.py -> build\lib.win32-3.8\winpty\tests
copying winpty\tests\__init__.py -> build\lib.win32-3.8\winpty\tests
creating build\lib.win32-3.8\winpty\_winpty
copying winpty\_winpty\__init__.py -> build\lib.win32-3.8\winpty\_winpty
running build_ext
building 'winpty.cywinpty' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\ali\appdata\local\programs\python\python38-32\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-1eke7zh0\\pywinpty_541aba1e831148ec8ed9409eefc720d1\\setup.py'"'"'; __file__='"'"'C:\\Users\\Ali\\AppData\\Local\\Temp\\pip-install-1eke7zh0\\pywinpty_541aba1e831148ec8ed9409eefc720d1\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\Ali\AppData\Local\Temp\pip-record-brdl12uh\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\ali\appdata\local\programs\python\python38-32\Include\pywinpty' Check the logs for full command output.
The error message includes:
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
So go to https://visualstudio.microsoft.com/downloads/ and install Microsoft Visual C++ Build Tools.

When installing TA-Lib I get the following -> ERROR: Command errored out with exit status 1:

I am trying to install TA-Lib and everything I try does not work. I do not know what package wheel is and why the error references numpy but I am hoping someone can help me.
What I am using:
Python 3.9.2
pip 21.1.1
PS C:\Users\ebben> pip install TA-Lib
Collecting TA-Lib
Using cached TA-Lib-0.4.19.tar.gz (267 kB)
Requirement already satisfied: numpy in c:\python39\lib\site-packages (from TA-Lib) (1.20.2)
Using legacy 'setup.py install' for TA-Lib, since package 'wheel' is not installed.
Installing collected packages: TA-Lib
Running setup.py install for TA-Lib ... error
ERROR: Command errored out with exit status 1:
command: 'c:\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ebben\\AppData\\Local\\Temp\\pip-install-kj0oo9o5\\ta-lib_40a2fa67a4f04799b16fff76025d88fb\\setup.py'"'"'; __file__='"'"'C:\\Users\\ebben\\AppData\\Local\\Temp\\pip-install-kj0oo9o5\\ta-lib_40a2fa67a4f04799b16fff76025d88fb\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ebben\AppData\Local\Temp\pip-record-z8tx6fp7\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python39\Include\TA-Lib'
cwd: C:\Users\ebben\AppData\Local\Temp\pip-install-kj0oo9o5\ta-lib_40a2fa67a4f04799b16fff76025d88fb\
Complete output (20 lines):
C:\Users\ebben\AppData\Local\Temp\pip-install-kj0oo9o5\ta-lib_40a2fa67a4f04799b16fff76025d88fb\setup.py:71: UserWarning: Cannot find ta-lib library, installation may fail.
warnings.warn('Cannot find ta-lib library, installation may fail.')
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\talib
copying talib\abstract.py -> build\lib.win-amd64-3.9\talib
copying talib\deprecated.py -> build\lib.win-amd64-3.9\talib
copying talib\stream.py -> build\lib.win-amd64-3.9\talib
copying talib\test_abstract.py -> build\lib.win-amd64-3.9\talib
copying talib\test_data.py -> build\lib.win-amd64-3.9\talib
copying talib\test_func.py -> build\lib.win-amd64-3.9\talib
copying talib\test_pandas.py -> build\lib.win-amd64-3.9\talib
copying talib\test_stream.py -> build\lib.win-amd64-3.9\talib
copying talib\__init__.py -> build\lib.win-amd64-3.9\talib
running build_ext
building 'talib._ta_lib' 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:\python39\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ebben\\AppData\\Local\\Temp\\pip-install-kj0oo9o5\\ta-lib_40a2fa67a4f04799b16fff76025d88fb\\setup.py'"'"'; __file__='"'"'C:\\Users\\ebben\\AppData\\Local\\Temp\\pip-install-kj0oo9o5\\ta-lib_40a2fa67a4f04799b16fff76025d88fb\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\ebben\AppData\Local\Temp\pip-record-z8tx6fp7\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\python39\Include\TA-Lib' Check the logs for full command output.
TA-Lib is a C-library. You're trying to install a python wrapper for it and it can't find C library during installation. Wrapper prints:
setup.py:71: UserWarning: Cannot find ta-lib library, installation may fail.
So, firstly, install the C library binary, then install python wrapper. Check out Dependencies section at https://mrjbq7.github.io/ta-lib/install.html

How do I fix this error when installing pyPDF2 in Python

I receive the following error when trying to install pyPDF2 using following text at the command prompt:
python -m pip install pyPDF2
Any suggestions to resolve?
Error result:
Microsoft Windows [Version 10.0.19042.572]
(c) 2020 Microsoft Corporation. All rights reserved.
C:\Users\bell_>python -m pip install pyPDF2
Collecting pyPDF2
Using cached https://files.pythonhosted.org/packages/b4/01/68fcc0d43daf4c6bdbc6b33cc3f77bda531c86b174cac56ef0ffdb96faab/PyPDF2-1.26.0.tar.gz
Installing collected packages: pyPDF2
Running setup.py install for pyPDF2 ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Program Files\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\bell_\\AppData\\Local\\Temp\\pip-install-q3y1fs2o\\pyPDF2\\setup.py'"'"'; __file__='"'"'C:\\Users\\bell_\\AppData\\Local\\Temp\\pip-install-q3y1fs2o\\pyPDF2\\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\bell_\AppData\Local\Temp\pip-record-4uxjshye\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\bell_\AppData\Local\Temp\pip-install-q3y1fs2o\pyPDF2\
Complete output (18 lines):
running install
running build
running build_py
creating build
creating build\lib
creating build\lib\PyPDF2
copying PyPDF2\filters.py -> build\lib\PyPDF2
copying PyPDF2\generic.py -> build\lib\PyPDF2
copying PyPDF2\merger.py -> build\lib\PyPDF2
copying PyPDF2\pagerange.py -> build\lib\PyPDF2
copying PyPDF2\pdf.py -> build\lib\PyPDF2
copying PyPDF2\utils.py -> build\lib\PyPDF2
copying PyPDF2\xmp.py -> build\lib\PyPDF2
copying PyPDF2\_version.py -> build\lib\PyPDF2
copying PyPDF2\__init__.py -> build\lib\PyPDF2
running install_lib
creating C:\Program Files\Python38\Lib\site-packages\PyPDF2
error: could not create 'C:\Program Files\Python38\Lib\site-packages\PyPDF2': Access is denied
----------------------------------------
ERROR: Command errored out with exit status 1: 'C:\Program Files\Python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\bell_\\AppData\\Local\\Temp\\pip-install-q3y1fs2o\\pyPDF2\\setup.py'"'"'; __file__='"'"'C:\\Users\\bell_\\AppData\\Local\\Temp\\pip-install-q3y1fs2o\\pyPDF2\\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\bell_\AppData\Local\Temp\pip-record-4uxjshye\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
WARNING: You are using pip version 19.2.3, however version 20.2.4 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
In your error it says that access was denied. So try running the same command while running cmd as admin.

Categories

Resources