由于电脑无法联网,只能离线安装, 电脑里只有python 2.7, 下面是安装步骤, 所有的安装包都可以在下面的官网网站下载:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy
1. pip安装
下载对应版本的pip.whl后, 还要在该网站下载里面的get-pip.py:
https://pip.pypa.io/en/stable/installing/
该文件是在线下载安装, 而里面也介绍了安装本地pip副本的方法:
安装时的可选项:
get-pip.py options
–no-setuptools
If set, don’t attempt to install setuptools
–no-wheel
If set, don’t attempt to install wheelAdditionally, get-pip.py supports using the pip install options and the general options. Below are some examples:
Install from local copies of pip and setuptools:
python get-pip.py –no-index –find-links=/local/copies上面的/local/copy是放pip安装文件的路径
由于我没有下载wheel 和setuptools, 所以这两个不安装, 将pip…whl和get-pip.py放到一个地方,我放在d:盘, 所以的cmd下运行下面的命令:
python get-up.py --no-setuptools --no-wheel --find-links=d:\
- 1
OK
2 . wheel安装
由于numpy.whl的安装需要wheel, 所以在前面的连接里下载wheel, 这次用pip命令安装:
pip install wheel-0.29......whl
安装wheel文件首先需要安装pip文件,之后使用pip安装文件
3.下载wheel文件,安装PySide软件包;
offline的netscope地址:
直接运行 Python runNetscope.py
https://github.com/birolkuyumcu/offline-netscope
采用http的方式:
Handler = SimpleHTTPServer.SimpleHTTPRequestHandler
httpd = SocketServer.TCPServer(("30.10.127.56", PORT), Handler)
之后输入:
http://30.10.127.56:8000/quickstart.html
就可以访问了!