mac已经安装了python的requests但依然提示提示ModuleNotFoundError

遇到这种问题。在安装模块的时候需要指定安装目录

pip install --target=/Users/mac/WORK/Python/PythonEnvs/penv3.6/lib/python3.6/site-packages beautifulsoup4
pip install --target=/Users/mac/WORK/Python/PythonEnvs/penv3.6/lib/python3.6/site-packages requests
pip install --target=/Users/mac/WORK/Python/PythonEnvs/penv3.6/lib/python3.6/site-packages lxml

猜你喜欢

转载自blog.csdn.net/abiao555/article/details/108179164
今日推荐