- 不推荐(不是最新的版本)
pip install http_import
- 推荐(最新的版本)
pip install https://github.com/cn-kali-team/http_import/archive/master.zip
- 远程内存加载Python模块
import sys
import http_import
sys.path.append('http://localhost:8000')
http_import.install_path_hook()
import requests
print(dir(requests))
- 开启http服务,
python3 -m http.server