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