如何在不使用github或anaconda的情况下下载数据分析所需的python包(例如pandas,scipy,numpy等)和机器学习包(sci-kit学习启动器,用于深度学习,如果可能的话,等等)?
我们的客户允许我们在我们的终端中安装python 3.6及以上版本(32位)进行数据分析和机器学习项目,但由于安全限制我们无法访问github,也无法下载anaconda软件包。
请提供合适的网络链接和说明。
答案 0 :(得分:0)
使用pip(Python包管理器)安装包。 只需使用以下" pip"终端中的命令并安装它们。 例如,如果要安装tensorflow软件包,请在终端中输入以下命令。
pip install tensorflow
请参阅此网址以获取更多说明。 https://packaging.python.org/tutorials/installing-packages/
答案 1 :(得分:0)
下载whl文件 使用cmd窗口并转到下载文件夹,然后安装如下:
C:\Users\XXXXXXXX>cd C:\Users\XXXXXXXX\Documents\Python Packages
C:\Users\XXXXXXXX\Documents\Python Packages>pip install numpy-1.13.0+mkl-cp36-cp36m-win32.whl
Processing c:\users\XXXXXXXX\documents\python packages\numpy-1.13.0+mkl-cp36-cp
36m-win32.whl
Installing collected packages: numpy
Found existing installation: numpy 1.13.0
Uninstalling numpy-1.13.0:
Successfully uninstalled numpy-1.13.0
Successfully installed numpy-1.13.0+mkl
C:\Users\XXXXXXXX\Documents\Python Packages>pip install scipy-0.19.1-cp36-cp36m
-win32.whl
Processing c:\users\XXXXXXXX\documents\python packages\scipy-0.19.1-cp36-cp36m-
win32.whl
Requirement already satisfied: numpy>=1.8.2 in c:\users\XXXXXXXX\appdata\local\
programs\python\python36-32\lib\site-packages (from scipy==0.19.1)
Installing collected packages: scipy
Successfully installed scipy-0.19.1
C:\Users\XXXXXXXX\Documents\Python Packages>