安装 SciPy 和 scikit-learn 升级pip 及pip基本命令表
安装Scipy和scikit-learn出错,出错记录及当时最终解决办法
问题:
一、使用pip直接安装
直接pip install scipy
C:\Users\Plain>pip install scripy
Collecting scripy
Downloading Scripy-0.9.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\plain\appdata\local\temp\pip-build-bqakt2\scripy\setup.py",line 96, in <module>
description=get_description(packages[0], PACKAGE_DIR),
File "c:\users\plain\appdata\local\temp\pip-build-bqakt2\scripy\setup.py",line 47, in get_description
pkg = __import__(package, level=1)
File "c:\users\plain\appdata\local\temp\pip-build-bqakt2\scripy\lib\scripy\__init__.py", line 11, in <module>
from .edit import *
File "c:\users\plain\appdata\local\temp\pip-build-bqakt2\scripy\lib\scripy\edit.py", line 15, in <module>
import pwd
ImportError: No module named pwd
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in c:\users\plain\appdata\local\temp\pip-build-bqakt2\scripy\
显示错误后,也没有仔细分析问题原因,能力欠缺。
解决:
二、使用.whl文件安装
在网站下载scipy.whl 软件http://www.lfd.uci.edu/~gohlke/pythonlibs/#scipy
然后在msdos中直接:pip install (将下载好的.whl文件拖入即可)
安装失败:显示:
C:\Users\Plain>pip install C:\Users\Plain\Desktop\scipy-0.17.-cp27-cp27m-win_amd64.whl
scipy-0.17.-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.
You are using pip version 7.1., however version 8.1. is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
在刚才下载的网上查阅了关于安装有:Use pip version 8 or newer to install the downloaded .whl files.
大意就是使用pip version 8 或者最新版本(我的是7.1.2,当时最新8.1.2),可能是pip过旧的原因
解决续:
三,升级pip,及部分pip命令学习
按照上边的升级提示:
python -m pip install --update pip
果然最后显示:Successfully installed pip-8.1.2
然后查看pip版本 使用pip -V
如果命令出错会显示所有的pip 命令:
C:\Users\Plain>pip -v Usage:
pip <command> [options] Commands:
install Install packages.
download Download packages.
uninstall Uninstall packages.
freeze Output installed packages in requirements format # 输出已安装的软件包的需求格式
list List installed packages. # 类似于freeze
show Show information about installed packages.
search Search PyPI for packages.
wheel Build wheels from your requirements.
hash Compute hashes of package archives.
completion A helper command used for command completion
help Show help for commands. General Options:
-h, --help Show help.
--isolated Run pip in an isolated mode, ignoring
environment variables and user configuration.
-v, --verbose Give more output. Option is additive, and can be
used up to times.
-V, --version Show version and exit.
-q, --quiet Give less output.
--log <path> Path to a verbose appending log.
--proxy <proxy> Specify a proxy in the form
[user:passwd@]proxy.server:port.
--retries <retries> Maximum number of retries each connection should
attempt (default times).
--timeout <sec> Set the socket timeout (default seconds).
--exists-action <action> Default action when a path already exists:
(s)witch, (i)gnore, (w)ipe, (b)ackup.
--trusted-host <hostname> Mark this host as trusted, even though it does
not have valid or any HTTPS.
--cert <path> Path to alternate CA bundle.
--client-cert <path> Path to SSL client certificate, a single file
containing the private key and the certificate
in PEM format.
--cache-dir <dir> Store the cache data in <dir>.
--no-cache-dir Disable the cache.
--disable-pip-version-check
Don't periodically check PyPI to determine
whether a new version of pip is available for
download. Implied with --no-index. C:\Users\Plain>pip -V
pip 8.1.2 from c:\python27\lib\site-packages (python 2.7)
四、直接使用pip需要将pip添加到系统环境变量path中
----------------2016-7-24 12:29:40--
source:
安装 SciPy 和 scikit-learn 升级pip 及pip基本命令表的更多相关文章
- Windows下用PIP安装scipy出现no lapack/blas resources found
Windows下升级了pandas,但是发现scipy包随后引用出错,后来确认需重新安装scipy, 在用PIP安装scipy出现no lapack/blas resources found的错误,具 ...
- Scikit Learn安装教程
Windows下安装scikit-learn 准备工作 Python (>= 2.6 or >= 3.3), Numpy (>= 1.6.1) Scipy (>= 0.9), ...
- Windows下pip安装scipy报错no lapack/blas resources found
Windows下升级了pandas,但是发现scipy包随后引用出错,后来确认需重新安装scipy, 在用pip安装scipy出现no lapack/blas resources found的错误. ...
- Ubuntu-Python2.7安装 scipy,numpy,matplotlib 和pip
一. scipy,numpy,matplotlib sudo apt-get install python-scipy sudo apt-get install python-numpy sudo a ...
- win7-64bit下安装Scipy
一直用MAC写python,但京东给的本装的是win7系统,在安装scipy时各种报错,最后错误提示为: no lapack/blas resources found 开始一顿搜,爆栈给出的解决方案是 ...
- python3安装pandas执行pip3 install pandas命令后卡住不动的问题及安装scipy、sklearn库的numpy.distutils.system_info.NotFoundError: no lapack/blas resources found问题
一直尝试在python3中安装pandas等一系列软件,但每次执行pip3 install pandas后就卡住不动了,一直停在那,开始以为是pip命令的版本不对,还执行过 python -m pip ...
- Windows下python virtualenv使用,镜像源设置,批量安装,安装scipy,numpy
镜像源设置 在C:\Users\Administrator\下建立pip文件夹,然后在里面创建了一个pip.ini 内容为: [global]index-url = https://pypi.tuna ...
- Linux 64位下一键安装scipy等科学计算环境
Linux 64位下一键安装scipy等科学计算环境 采用scipy.org的各种方法试过了,安装还是失败.找到了一键式安装包Anaconda,基本python要用到的库都齐了,而且还可以选择安装到其 ...
- Visual Studio 2017 + Python3.6安装scipy库
Windows10下安装scipy很麻烦,直接在命令行下使用pip install scipy无法安装,但可以借助VS2017的集成环境来安装. (1)首先在Visual Studio Install ...
随机推荐
- Python 实现粒子滤波
#转# -*- coding=utf-8 -*-# 直接运行代码可以看到跟踪效果# 红色的小点代表粒子位置# 蓝色的大点表示跟踪的结果# 白色的方框表示要跟踪的目标# 看懂下面两个函数即可from n ...
- 【Algorithms】归并排序(merge sort)
几个比较常见的排序算法里头,这个我是比较生疏的一个,有一天突然被问了一个问题是,归并排序最大的特点是什么,我才想起这个算法来.下午又看不进书啦,就实现一下,记下来. 归并排序采取的是分治策略,就是先将 ...
- Android应用程序窗口(Activity)与WindowManagerService服务的连接过程分析
在前两文中,我们分析了Activity组件的窗口对象和视图对象的创建过程.Activity组件在其窗口对象和视图对象创建完成之后,就会请求与WindowManagerService建立一个连接,即请求 ...
- c#.net常用字符串函数 字符串常用方法
RegionsStr = RegionsStr.Remove(RegionsStr.LastIndexOf(","), 1); //去掉最后一个逗号 Compare 比较字符串 ...
- 在Linux最小系统上编译运行第一个helloworld程序
一.安装和使用SSH软件 1.安装SSH 软件 1)SSH 软件压缩包可以在网盘下载,下载后解压,进入解压出来的文件夹,如下图. 2)单击上图中的“SSHSecureShellClient-3.2.9 ...
- c#读取Word模板,利用书签替换内容包括表格
//生成WORD程序对象和WORD文档对象 Microsoft.Office.Interop.Word.Application appWord = new Microsoft.Office.Inter ...
- JSP 运行
Tomcat 上运行 JSP 应用程序 完成一些包装工作后,才能在 Tomcat 上运行 index.jsp 程序.通常需要按照以下步骤操作: 创建 JSP 应用程序.如果只使用一个页面,则称它为 i ...
- Oracle 正则表达式函数-REGEXP_REPLACE 使用例子
原文在这: 戳 REGEXP_REPLACE 6个参数 第一个是输入的字符串 第二个是正则表达式 第三个是替换的字符 第四个是标识从第几个字符开始正则表达式匹配.(默认为1) 第五个是标识第几个匹配组 ...
- html5中的beginPath与stroke
名词解释: 定义和用法 beginPath() 方法在一个画布中开始子路径的一个新的集合. 语法 beginPath() 描述 beginPath() 丢弃任何当前定义的路径并且开始一条新的路径.它把 ...
- stl中的push_back
v_data.push_back(pdata);这句只是把指针pdata拷贝到 vector当中的一个指针p1当中 注意是拷贝也就是说当前pdata和p1指向同一个东西,p1在vector中.并不是将 ...