pip install any packages are problems

<!DOCTYPE html>





PS: The following operations are all based on win10 64 bit operating system

pip install any packages have a problem: Can not unpack file / tmp / pip-KzJgHD-unpack / simple

Error:

Cannot unpack file /tmp/pip-KzJgHD-unpack/simple (downloaded from /tmp/pip-M1hKq2-build, content-type: text/html; charset=utf-8); cannot detect archive format
Cannot determine archive format of /tmp/pip-M1hKq2-build

Solution:
need to add --extra-index-url such as:

pip install --extra-index-url http://mirrors.aliyun.com/pypi/simple/ config

--extra-index-url <url> Extra URLs of package indexes to use in addition to --index-url. Should follow the same rules as --index-url

Installation module failed with error

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

Solution:

  • Access https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient, find and download the package they need
  • CMD is to be stored in this directory file, executepip install mysqlclient
  • successful ^-^

Running pip install win32apiandpip install pywin32

Will prompt an error, as follows:

  Could not find a version that satisfies the requirement win32api (from versions: ) 
 No matching distribution found for win32api

Changed

pip install pypiwin32

Successfully resolved.

Category: python3
0
0
<< Previous: Python virtual environment
>> Next Article: Depending on the configuration and operating environment organization node.js applications
        </div></div></div></div></div></div></div></div></body>
@. Posted 2019-12-04 20:01   Cai Wenjun   read ( ... ) Comments ( ... edit collections

PS: The following operations are all based on win10 64 bit operating system

pip install any packages have a problem: Can not unpack file / tmp / pip-KzJgHD-unpack / simple

Error:

Cannot unpack file /tmp/pip-KzJgHD-unpack/simple (downloaded from /tmp/pip-M1hKq2-build, content-type: text/html; charset=utf-8); cannot detect archive format
Cannot determine archive format of /tmp/pip-M1hKq2-build

Solution:
need to add --extra-index-url such as:

pip install --extra-index-url http://mirrors.aliyun.com/pypi/simple/ config

--extra-index-url <url> Extra URLs of package indexes to use in addition to --index-url. Should follow the same rules as --index-url

Installation module failed with error

error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

Solution:

  • Access https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient, find and download the package they need
  • CMD is to be stored in this directory file, executepip install mysqlclient
  • successful ^-^

Running pip install win32apiandpip install pywin32

Will prompt an error, as follows:

  Could not find a version that satisfies the requirement win32api (from versions: ) 
 No matching distribution found for win32api

Changed

pip install pypiwin32

Successfully resolved.

Guess you like

Origin www.cnblogs.com/caiwenjun/p/11985158.html
Recommended