pandas stepped pit installation

Existing environments

  • win7
  • python3.8.1, the original use of python2.6, pip installed when it says no quick maintenance updates, and also to put python3 fitted
  • pip 20.0.2

Installation Issues

  • Directly open cmd, pip install pandasEnter is engaged
  • Tip python version
    suggested that my ancient version 2.6 was abandoned, I installed the 3
  • pip version is too old and
    my computer ate ash for several years in the corner, out he said I was 10, 20. The new version is a [Behind his cry .jpg], followed by the command to update pip ok
  • Then comes the problem
    Here Insert Picture Description

distutils.errors.DistutilsError:Could not find suitable distribution for Requirement.parse('cffi>=1.11.5;sys_platform == “win32” and platform_python_implementation == “CPython”)
ERROR: Command errored out with exit status 1: python setup.py
egg_info Check the logs for full command output.

  • I see a status code 1, let me check to see detailed diary. Of course there is a status code is Baidu ah! Then we get a solution to this bunch of weird below.
    • Switching administrator permission to open cmd, may not be enough privileges to install.
      rarely seems to win permissions problems when I was tried, useless

    • Switching pip3 install
      some say is not pip switching pip3 ok, pip3 install pandascarriage still does not work

    • Manual download
      there pip want me to manually download ???, never give up until the last moment

    • Coding problem
      that is in this blog on to see. But I skip him, intuition might tell me that I am not the problem

    • Update setuptools
      also try setuptools updated version, still does not work, indicating that this is not a problem.

    • Linux can use yum install
      use yum install python-pandas successfully installed. But I win ah!

At last! Focus here!

Because in the process of trying, every time you have to change completely re- pip install pandasEnter again, has been very slow. . . In 10k fluctuate. Then I tried to switch the mirror address. pip install -helpYou can see Here Insert Picture Description
behind the command with -i or -index can specify a mirror address, and I can Baidu one, pip install --index https://pypi.mirrors.ustc.edu.cn/simple/ gevent==1.4.0though that does not work, the problem with a place, but fast enough to fly, basically in 3-5m / s. Look at this domain name, such as Tsinghua University.
Bored look at what other domestic mirror, see this https://www.cnblogs.com/believepd/p/10499844.html , put the country into default mirroring configuration, the result, it becomes a solution. . .

solution

  • Pip and configure the default upgrade Ali cloud images
pip install pip -U
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/

Try again
Here Insert Picture Descriptioneven, my God, get. . .

to sum up

Just looked back again and error to find that the problem has to say, the focus is not the last line of the status code, can not find the appropriate installation package penultimate line, Could not the Find Suitable Distribution's for Requirement.parse , this is the focus, emmmmm. We neglected the most important point, groping for a long time, look at the next obediently open diary. . .

Released four original articles · won praise 0 · Views 42

Guess you like

Origin blog.csdn.net/weixin_44385465/article/details/104274488