Python:在pipenv中的pip3安装请求之后,“没有名为'requests'的模块”

时间:2018-09-14 04:03:33

标签: python pip pipenv

我正在尝试使用Python 3在pipenv中安装库请求。

  1. #include "B.hpp" #include "A.hpp" inline B::B() { b = 1; cout << b; } inline void B::geta(A& ao) { b = ao.a; // <<<<<<<<<<<< here's the problem to be solved cout << b; } ,然后忘记pip install requests仅为Python 2安装,导致
  2. pip,它会确保返回

pip3 install requests

当我使用Requirement already satisfied: requests in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (2.19.1) Requirement already satisfied: idna<2.8,>=2.5 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from requests) (2.7) Requirement already satisfied: urllib3<1.24,>=1.21.1 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from requests) (1.23) Requirement already satisfied: certifi>=2017.4.17 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from requests) (2018.8.24) Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages (from requests) (3.0.4) 运行python文件时,一切正常,但是当我运行import requests时,出现错误pipenv run python mypythonscript.py。请告知我所缺少的内容。

0 个答案:

没有答案