Windows 10中的Python包ImportError

时间:2016-08-06 16:17:06

标签: python

我在Windows 10上安装Python软件包时遇到了困难。软件包名称是Tabular ..我一直在尝试而且它没有用完。当我尝试使用pip安装它时我得到了什么关于它的任何帮助?谢谢

C:\Python27\Scripts>pip install tabular
Collecting tabular
  Using cached tabular-0.1.tar.gz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "", line 1, in 
      File "c:\users\pc\appdata\local\temp\pip-build-5mggv5\tabular\setup.py", line 50, in 
        raise ImportError("distribute was not found and fallback to setuptools was not allowed")
    ImportError: distribute was not found and fallback to setuptools was not allowed

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\pc\appdata\local\temp\pip-build-5mggv5\tabular\

C:\Python27\Scripts>pip install distribute
Requirement already satisfied (use --upgrade to upgrade): distribute in c:\python27\lib\site-packages
Requirement already satisfied (use --upgrade to upgrade): setuptools>=0.7 in c:\python27\lib\site-packages (from distribute)

C:\Python27\Scripts>pip install --upgrade distribute
Requirement already up-to-date: distribute in c:\python27\lib\site-packages
Collecting setuptools>=0.7 (from distribute)
  Downloading setuptools-25.1.6-py2.py3-none-any.whl (442kB)
    100% |################################| 450kB 191kB/s
Installing collected packages: setuptools
  Found existing installation: setuptools 25.1.1
    Uninstalling setuptools-25.1.1:
      Successfully uninstalled setuptools-25.1.1
Successfully installed setuptools-25.1.6

1 个答案:

答案 0 :(得分:0)

表格0.1包含Windows 10的问题。请回退到0.0.8

#define LINUX

修改

对于使用python 2.7的Windows 10上的scipy安装,说明位于https://stackoverflow.com/a/38618044/5334188