After calling the "pip install" command of any library, an error occurs:
ERROR: Command errored out with exit status 2:
command: 'c:\users\roman\appdata\local\programs\python\python38\python.exe' 'c:\users\roman\appdata\local\programs\python\python38\lib\site-packages\pip' install -
-ignore-installed --no-user --prefix 'C:\Users\roman\AppData\Local\Temp\pip-build-env-2tu6fau4\overlay' --no-warn-script-location --no-binary :none: --only-binary :no
ne: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel
cwd: None
Complete output (24 lines):
Collecting setuptools>=40.8.0
Using cached setuptools-67.0.0-py3-none-any.whl (1.1 MB)
Collecting wheel
Using cached wheel-0.38.4-py3-none-any.whl (36 kB)
Installing collected packages: setuptools, wheel
ERROR: Exception:
Traceback (most recent call last):
File "c:\users\roman\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\cli\base_command.py", line 216, in _main
status = self.run(options, args)
File "c:\users\roman\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\cli\req_command.py", line 182, in wrapper
return func(self, options, args)
File "c:\users\roman\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\commands\install.py", line 412, in run
installed = install_given_reqs(
File "c:\users\roman\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\req\__init__.py", line 82, in install_given_reqs
requirement.install(
File "c:\users\roman\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\req\req_install.py", line 778, in install
scheme = get_scheme(
File "c:\users\roman\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\locations.py", line 185, in get_scheme
scheme = distutils_scheme(
File "c:\users\roman\appdata\local\programs\python\python38\lib\site-packages\pip\_internal\locations.py", line 118, in distutils_scheme
assert not (home and prefix), "home={} prefix={}".format(home, prefix)
AssertionError: home=C:\Users\roman\AppData\Local\Temp\pip-target-tdo35poo prefix=C:\Users\roman\AppData\Local\Temp\pip-build-env-2tu6fau4\overlay
WARNING: You are using pip version 20.2.1; however, version 22.3.1 is available.
You should consider upgrading via the 'c:\users\roman\appdata\local\programs\python\python38\python.exe -m pip install --upgrade pip' command.
----------------------------------------
ERROR: Command errored out with exit status 2: 'c:\users\roman\appdata\local\programs\python\python38\python.exe' 'c:\users\roman\appdata\local\programs\python\python
38\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\roman\AppData\Local\Temp\pip-build-env-2tu6fau4\overlay' --no-warn-script-location -
-no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output.`
Important nuances:
I have a new project in paycharm without modules.
Pure Python 3.9
pip (python 3.8).
I am not an admin in Windows 10 system.
I correctly added Python 3.9 to the system path.
Installing libraries through the interpreter settings also gives the same error
I reinstalled python and paycharm
I tried writing pip3 and --no-user
Upon googling the error assert not (home and prefix), we can find this pypa/pip issue where someone has solved this by making sure their pip.conf doesn't have a target line.
You should make sure your pip configuration files don't have extraneous cruft left over in them and/or that nothing has set a PIP_TARGET environment variable or similar.
I am installing Pycaret==2.2.1 and getting the below error.
Collecting pyLDAvis (from pycaret==2.2.1)
Using cached https://files.pythonhosted.org/packages/03/a5/15a0da6b0150b8b68610cc78af80364a80a9a4c8b6dd5ee549b8989d4b60/pyLDAvis-3.3.1.tar.gz
Installing build dependencies ... error
Complete output from command C:\Users\mm\Anaconda3\python.exe -m pip install --ignore-installed --no-user --prefix C:\Users\mm\AppData\Local\Temp\pip-build-env-1gfpkcpv --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools:
Collecting setuptools
Using cached https://files.pythonhosted.org/packages/3b/02/8d4d27b1cacaac2d129a27d17a22d92a2a5eedcb7817d4ed8ab0d4daf5c4/setuptools-60.9.3-py3-none-any.whl
Installing collected packages: setuptools
Exception:
Traceback (most recent call last):
File "C:\Users\mm\Anaconda3\lib\site-packages\pip\_internal\cli\base_command.py", line 143, in main
status = self.run(options, args)
File "C:\Users\mm\Anaconda3\lib\site-packages\pip\_internal\commands\install.py", line 366, in run
use_user_site=options.use_user_site,
File "C:\Users\mm\Anaconda3\lib\site-packages\pip\_internal\req\__init__.py", line 49, in install_given_reqs
**kwargs
File "C:\Users\mm\Anaconda3\lib\site-packages\pip\_internal\req\req_install.py", line 760, in install
use_user_site=use_user_site, pycompile=pycompile,
File "C:\Users\mm\Anaconda3\lib\site-packages\pip\_internal\req\req_install.py", line 382, in move_wheel_files
warn_script_location=warn_script_location,
File "C:\Users\mm\Anaconda3\lib\site-packages\pip\_internal\wheel.py", line 215, in move_wheel_files
prefix=prefix,
File "C:\Users\mm\Anaconda3\lib\site-packages\pip\_internal\locations.py", line 165, in distutils_scheme
i.finalize_options()
File "C:\Users\mm\Anaconda3\lib\distutils\command\install.py", line 248, in finalize_options
"must supply either home or prefix/exec-prefix -- not both")
distutils.errors.DistutilsOptionError: must supply either home or prefix/exec-prefix -- not both
----------------------------------------
Command "C:\Users\mm\Anaconda3\python.exe -m pip install --ignore-installed --no-user --prefix C:\Users\mm\AppData\Local\Temp\pip-build-env-1gfpkcpv --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools" failed with error code 2 in None
I have :
Python 3.7 with Anaconda
Windows 10 - 64 bit
Thanks very much
I am having an issue with using Pipenv that just started recently for some reason. Pretty consistently it seems that anytime I try to create/install a virtual env from a Pipfile with pipenv install I am getting a Locking Failed error, followed by a LOT of output error messages. I have been trying to work through this, updating setuptools and other various packages trying to find where the issue is but am having no luck with solutions to similar problems I have found online so far.
System Specs:
2019 iMac
Big Sur 11.1
Pipfile:
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
fastapi = "*"
fastapi-utils = "*"
uvicorn = {extras = ["standard"], version = "*"}
sqlalchemy = "*"
pytesseract = "*"
pdf2image = "*"
pillow = "*"
cmake = "*"
pandas = "*"
python-multipart = "*"
dataclasses = "*"
psycopg2-binary = "*"
python-dotenv = "*"
pypdf2 = "*"
pipx = "*"
spacy = "*"
numpy = "*"
[requires]
python_version = "3.7.9"
The output from the error message is below:
Creating a virtualenv for this project...
Pipfile: /Users/erbun/Documents/Lambda School/Labs/Lambda-School-Labs-human-rights-first-asylum-ds-a/Pipfile
Using /Users/erbun/.pyenv/versions/3.7.9/bin/python3.7m (3.7.9) to create virtualenv...
⠙ Creating virtual environment...created virtual environment CPython3.7.9.final.0-64 in 756ms
creator CPython3Posix(dest=/Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK, clear=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/erbun/Library/Application Support/virtualenv)
added seed packages: pip==20.3.3, setuptools==51.0.0, wheel==0.36.2
activators BashActivator,CShellActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator
✔ Successfully created virtual environment!
Virtualenv location: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Building requirements...
Resolving dependencies...
✘ Locking Failed!
ERROR:pip.subprocessor:Command errored out with exit status 1:
command: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK/bin/python /usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip install --ignore-installed --no-user --prefix /private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-2gd0gl5f/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'cython>=0.25' 'cymem>=2.0.2,<2.1.0' 'preshed>=3.0.2,<3.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=7.4.1,<7.5.0' 'blis>=0.4.0,<0.8.0' 'numpy>=1.15.0'
cwd: None
Complete output (75 lines):
Collecting setuptools
Using cached setuptools-52.0.0-py3-none-any.whl (784 kB)
Collecting cython>=0.25
Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
Processing /Users/erbun/Library/Caches/pip/wheels/20/85/35/22c2942bc726e15d643da43c441f83490117d7b06dc7c2e732/cymem-2.0.5-cp37-cp37m-macosx_11_0_x86_64.whl
Collecting preshed<3.1.0,>=3.0.2
Using cached preshed-3.0.5.tar.gz (14 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Processing /Users/erbun/Library/Caches/pip/wheels/03/51/93/6a20938381704ae7b6093cc8e9c4ebb09d44579d2c3fa1a26c/murmurhash-1.0.5-cp37-cp37m-macosx_11_0_x86_64.whl
Collecting thinc<7.5.0,>=7.4.1
Using cached thinc-7.4.5.tar.gz (1.3 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK/bin/python /usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip install --ignore-installed --no-user --prefix /private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-zwryakhp/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'cython>=0.25' 'murmurhash>=0.28.0,<1.1.0' 'cymem>=2.0.2,<2.1.0' 'preshed>=1.0.1,<3.1.0' 'blis>=0.4.0,<0.8.0' 'numpy>=1.15.0'
cwd: None
Complete output (49 lines):
Collecting setuptools
Using cached setuptools-52.0.0-py3-none-any.whl (784 kB)
Collecting cython>=0.25
Using cached Cython-0.29.21-py2.py3-none-any.whl (974 kB)
Processing /Users/erbun/Library/Caches/pip/wheels/03/51/93/6a20938381704ae7b6093cc8e9c4ebb09d44579d2c3fa1a26c/murmurhash-1.0.5-cp37-cp37m-macosx_11_0_x86_64.whl
Processing /Users/erbun/Library/Caches/pip/wheels/20/85/35/22c2942bc726e15d643da43c441f83490117d7b06dc7c2e732/cymem-2.0.5-cp37-cp37m-macosx_11_0_x86_64.whl
Collecting preshed<3.1.0,>=1.0.1
Using cached preshed-3.0.5.tar.gz (14 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Collecting blis<0.8.0,>=0.4.0
Using cached blis-0.7.4.tar.gz (2.8 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'error'
ERROR: Command errored out with exit status 1:
command: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK/bin/python /usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/tmp46jpx0j4
cwd: /private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-install-_rpx54j6/blis
Complete output (21 lines):
init_dgelsd failed init
Traceback (most recent call last):
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py", line 257, in <module>
main()
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py", line 240, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
return hook(config_settings)
File "/private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-xww5q9c6/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 150, in get_requires_for_build_wheel
config_settings, requirements=['wheel'])
File "/private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-xww5q9c6/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 130, in _get_build_requires
self.run_setup()
File "/private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-xww5q9c6/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 145, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 24, in <module>
import numpy
File "/private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-xww5q9c6/overlay/lib/python3.7/site-packages/numpy/__init__.py", line 286, in <module>
raise RuntimeError(msg)
RuntimeError: Polyfit sanity test emitted a warning, most likely due to using a buggy Accelerate backend. If you compiled yourself, see site.cfg.example for information. Otherwise report this to the vendor that provided NumPy.
RankWarning: Polyfit may be poorly conditioned
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK/bin/python /usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/tmp46jpx0j4 Check the logs for full command output.
----------------------------------------
ERROR: Command errored out with exit status 1: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK/bin/python /usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip install --ignore-installed --no-user --prefix /private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-zwryakhp/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'cython>=0.25' 'murmurhash>=0.28.0,<1.1.0' 'cymem>=2.0.2,<2.1.0' 'preshed>=1.0.1,<3.1.0' 'blis>=0.4.0,<0.8.0' 'numpy>=1.15.0' Check the logs for full command output.
----------------------------------------
Traceback (most recent call last):
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/resolver.py", line 764, in <module>
main()
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/resolver.py", line 760, in main
dev=parsed.dev)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/resolver.py", line 741, in _main
resolve_packages(pre, clear, verbose, system, write, requirements_dir, packages, dev)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/resolver.py", line 709, in resolve_packages
requirements_dir=requirements_dir,
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/resolver.py", line 692, in resolve
req_dir=requirements_dir
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/utils.py", line 1403, in resolve_deps
req_dir=req_dir,
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/utils.py", line 1108, in actually_resolve_deps
resolver.resolve()
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/utils.py", line 823, in resolve
results = self.resolver.resolve(max_rounds=environments.PIPENV_MAX_ROUNDS)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/piptools/resolver.py", line 180, in resolve
has_changed, best_matches = self._resolve_one_round()
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/piptools/resolver.py", line 268, in _resolve_one_round
their_constraints.extend(self._iter_dependencies(best_match))
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/piptools/resolver.py", line 383, in _iter_dependencies
dependencies = self.repository.get_dependencies(ireq)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 229, in get_dependencies
legacy_results = self.get_legacy_dependencies(ireq)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 351, in get_legacy_dependencies
download_dir, ireq, wheel_cache
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/piptools/repositories/pypi.py", line 306, in resolve_reqs
results = resolver._resolve_one(reqset, ireq)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/legacy_resolve.py", line 339, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/legacy_resolve.py", line 287, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 509, in prepare_linked_requirement
req, self.req_tracker, self.finder, self.build_isolation,
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/operations/prepare.py", line 95, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(finder, build_isolation)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/distributions/sdist.py", line 38, in prepare_distribution_metadata
self._setup_isolation(finder)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/distributions/sdist.py", line 68, in _setup_isolation
"Installing build dependencies"
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/build_env.py", line 202, in install_requirements
call_subprocess(args, spinner=spinner)
File "/usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip/_internal/utils/subprocess.py", line 242, in call_subprocess
raise InstallationError(exc_msg)
pipenv.patched.notpip._internal.exceptions.InstallationError: Command errored out with exit status 1: /Users/erbun/.local/share/virtualenvs/Lambda-School-Labs-human-rights-first-asyl-iMyelADK/bin/python /usr/local/Cellar/pipenv/2020.11.15/libexec/lib/python3.9/site-packages/pipenv/patched/notpip install --ignore-installed --no-user --prefix /private/var/folders/vg/jzyp1_n94pq55jdvv6mtktw40000gn/T/pip-build-env-2gd0gl5f/overlay --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools 'cython>=0.25' 'cymem>=2.0.2,<2.1.0' 'preshed>=3.0.2,<3.1.0' 'murmurhash>=0.28.0,<1.1.0' 'thinc>=7.4.1,<7.5.0' 'blis>=0.4.0,<0.8.0' 'numpy>=1.15.0' Check the logs for full command output.
Any help in resolving this issue is greatly appreciated. Thanks in advance!
This is something I also noticed with the BigSur updates. Although there is an active issue for this on GitHub, a work around for the time being is to run the following command before you attempt to lock your Pipfile or install any packages. Note: this will only be effective in the terminal you run this command in.
export SYSTEM_VERSION_COMPAT=1
This will allow backwards compatibility and can be tested by running the following command before and after running the export command above
sw_vers
I am trying to install paramiko package using pip and not able to proceed due to this error.
OS: Win 10 x64
Python version: 3.4.0 x86
I also installed MS Visual C++ 2008 Express edition and found that the environment variable is set correctly.
But, still it says that the vcvarsall.bat can't be found. The command line is attached below. Pl. suggest a solution for this.
C:\>pip install paramiko
Collecting paramiko
Using cached https://files.pythonhosted.org/packages/95/19/124e9287b43e6ff3ebb9cdea3e5e8e88475a873c05ccdf8b7e20d2c4201e/paramiko-2.7.2-py2.py3-none-any.whl
Collecting bcrypt>=3.1.3 (from paramiko)
Using cached https://files.pythonhosted.org/packages/04/1c/a026eef0c7547b9eef7c61d25df0c21ddacf91592725d6279ab2a500a39d/bcrypt-3.1.7-cp34-cp34m-win32.whl
Collecting pynacl>=1.0.1 (from paramiko)
Using cached https://files.pythonhosted.org/packages/cf/5a/25aeb636baeceab15c8e57e66b8aa930c011ec1c035f284170cacb05025e/PyNaCl-1.4.0.tar.gz
Installing build dependencies ... error
Complete output from command C:\Python34\python.exe -m pip install --ignore-installed --no-user --prefix C:\Users\Raghavan\AppData\Local\Temp\pip-build-env-nnl_k10v --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.8.0 wheel "cffi>=1.4.1; python_implementation != 'PyPy'":
Collecting setuptools>=40.8.0
Using cached https://files.pythonhosted.org/packages/91/af/18d58ed8a8e7e6b91d71b0367034faf8ea41e1004018811388ed07a7f2d6/setuptools-43.0.0-py2.py3-none-any.whl
Collecting wheel
Using cached https://files.pythonhosted.org/packages/00/83/b4a77d044e78ad1a45610eb88f745be2fd2c6d658f9798a15e384b7d57c9/wheel-0.33.6-py2.py3-none-any.whl
Collecting cffi>=1.4.1
Using cached https://files.pythonhosted.org/packages/cb/ae/380e33d621ae301770358eb11a896a34c34f30db188847a561e8e39ee866/cffi-1.14.3.tar.gz
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\Raghavan\AppData\Local\Temp\pip-install-3wu31oij\cffi\setup.py", line 131, in <module>
if sys.platform == 'win32' and uses_msvc():
File "C:\Users\Raghavan\AppData\Local\Temp\pip-install-3wu31oij\cffi\setup.py", line 109, in uses_msvc
return config.try_compile('#ifndef _MSC_VER\n#error "not MSVC"\n#endif')
File "C:\Python34\lib\distutils\command\config.py", line 227, in try_compile
self._compile(body, headers, include_dirs, lang)
File "C:\Python34\lib\distutils\command\config.py", line 133, in _compile
self.compiler.compile([src], include_dirs=include_dirs)
File "C:\Python34\lib\distutils\msvc9compiler.py", line 460, in compile
self.initialize()
File "C:\Python34\lib\distutils\msvc9compiler.py", line 371, in initialize
vc_env = query_vcvarsall(VERSION, plat_spec)
File "C:\Python34\lib\distutils\msvc9compiler.py", line 259, in query_vcvarsall
raise DistutilsPlatformError("Unable to find vcvarsall.bat")
distutils.errors.DistutilsPlatformError: Unable to find vcvarsall.bat
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in C:\Users\Raghavan\AppData\Local\Temp\pip-install-3wu31oij\cffi\
----------------------------------------
Command "C:\Python34\python.exe -m pip install --ignore-installed --no-user --prefix C:\Users\Raghavan\AppData\Local\Temp\pip-build-env-nnl_k10v --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools>=40.8.0 wheel "cffi>=1.4.1; python_implementation != 'PyPy'"" failed with error code 1 in None
I was facing issue while installing paramiko for Pycharm.
One suggestion i found was to use anaconda which come preinstalled with many packages including paramiko.
Found solution:
python -m pip install --upgrade pip
This command updated my pip version from 19.2.3 to 20.3.3
then successfully installed paramiko:
python -m pip install -U paramiko
Python 3.8 is installed in my system.
It's throwing errors while trying to install Python pyautogui module. Anyone knows why it throws an error?
C:\Users\Mtronics>pip install pyautogui==0.9.35
Collecting pyautogui==0.9.35
Downloading PyAutoGUI-0.9.35.zip (57 kB)
|████████████████████████████████| 57 kB 415 kB/s
Collecting pymsgbox
Using cached PyMsgBox-1.0.8.tar.gz (18 kB)
Installing build dependencies ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\mtronics\appdata\local\programs\python\python38-32\python.exe' 'c:\users\mtronics\appdata\local\programs\python\python38-32\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\Mtronics\AppData\Local\Temp\pip-build-env-pvhbyby8\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel
cwd: None
Complete output (14 lines):
Traceback (most recent call last):
File "c:\users\mtronics\appdata\local\programs\python\python38-32\lib\runpy.py", line 194, in _run_module_as_main
return _run_code(code, main_globals, None,
File "c:\users\mtronics\appdata\local\programs\python\python38-32\lib\runpy.py", line 87, in _run_code
exec(code, run_globals)
File "c:\users\mtronics\appdata\local\programs\python\python38-32\lib\site-packages\pip\__main__.py", line 23, in <module>
from pip._internal.cli.main import main as _main # isort:skip # noqa
File "c:\users\mtronics\appdata\local\programs\python\python38-32\lib\site-packages\pip\_internal\cli\main.py", line 5, in <module>
import locale
File "c:\users\mtronics\appdata\local\programs\python\python38-32\lib\locale.py", line 16, in <module>
import re
File "c:\users\mtronics\appdata\local\programs\python\python38-32\lib\re.py", line 145, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\mtronics\appdata\local\programs\python\python38-32\python.exe' 'c:\users\mtronics\appdata\local\programs\python\python38-32\lib\site-packages\pip' install --ignore-installed --no-user --prefix 'C:\Users\Mtronics\AppData\Local\Temp\pip-build-env-pvhbyby8\overlay' --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- 'setuptools>=40.8.0' wheel Check the logs for full command output.
It is because you have a non standard enum module installed. It used to work before Python 3.6 but is no longer compatible with the standard libary.
Run this command to uninstall it and then try again:
pip uninstall -y enum34