小编Sto*_*rMy的帖子

Python pip 安装 mysqlclient

所以我第一次下载了 Python 32 位,然后我做了 python -m pip install mysqlclient.

我需要 Visual C++ 2015,但我有它们,因为我的文本编辑器是 VSCode。我卸载了 VSCode,安装了 Visual Studio Build Tools,每次执行时都会收到此错误python -m pip install mysqlclient。一,cl.exe 没有添加到我的路径中,所以我做了,但它仍然说

 error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\cl.exe' failed with exit status 2
Run Code Online (Sandbox Code Playgroud)

所以我下载了windows的wheel包,正如其他一些stackoverflow答案所说。每当我运行它时,我得到

我尝试下载 Python 64 位下载轮子,添加cl.exe到路径。

Collecting mysqlclient
  Using cached https://files.pythonhosted.org/packages/4d/38/c5f8bac9c50f3042c8f05615f84206f77f03db79781db841898fde1bb284/mysqlclient-1.4.4.tar.gz
Building wheels for collected packages: mysqlclient
  Building wheel for mysqlclient (setup.py) ... error
  ERROR: Command errored out with exit status 1:
   command: 'C:\Program Files (x86)\Python\python.exe' -u -c 'import …
Run Code Online (Sandbox Code Playgroud)

python mysql windows django cmd

7
推荐指数
2
解决办法
1万
查看次数

是否不再需要字符串头文件?

因此,我目前正在学习C ++,有时我看到您“必须” #include <string>在代码的顶部使用字符串。但是,当我运行我的代码时,在两种情况下它都做同样的事情。真的需要使用吗?

#include <iostream>
using namespace std;

int main() 
{
    string fullName;
    cout << "Type your full name: "; 
    getline(cin, fullName);
    cout << "Your name is: " << fullName;

}
Run Code Online (Sandbox Code Playgroud)

c++ string header

0
推荐指数
1
解决办法
109
查看次数

标签 统计

c++ ×1

cmd ×1

django ×1

header ×1

mysql ×1

python ×1

string ×1

windows ×1