-
pip正常安裝
pip install django1.11.4 -i https://pypi.douban.com/simple
pip3 install websockets6.0 --force-reinstall -
pip離線安裝
離線源地址 https://www.lfd.uci.edu/~gohlke/pythonlibs/
離線安裝 pip install mysqlclient-1.4.6-cp38-cp38-win32.whl -
pip 更新
python -m pip install --upgrade pip -i https://pypi.douban.com/simple -
安裝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!