python pip、安装github上模块 等操作


  1. pip正常安装
    pip install django1.11.4 -i https://pypi.douban.com/simple
    pip3 install websockets
    6.0 --force-reinstall

  2. pip离线安装
    离线源地址 https://www.lfd.uci.edu/~gohlke/pythonlibs/
    离线安装 pip install mysqlclient-1.4.6-cp38-cp38-win32.whl

  3. pip 更新
    python -m pip install --upgrade pip -i https://pypi.douban.com/simple

  4. 安装github上项目
    git clone https://github.com/locustio/locust.git
    python3 setup.py install

a)Use git clone https://github.com/YaokaiYang-assaultmaster/PythonPortScanner.git command to clone the repository to your own machine.
There is 2 methods for you to use this module.
b)One is to put PortScanner package in your working directory and import PortScanner to your code. In this way you can only use it in your current working directory.
c)The other is to execute python setup.py install in the PortScanner package.
In this way it will be installed to your python's site-packages folder. And after that you can use it globally by import PortScanner.
Voilà! You are ready to go!


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM