我已经安装了Python 3.5并且在运行时
pip install mysql-python
Run Code Online (Sandbox Code Playgroud)
它给了我以下错误
error: Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)
Run Code Online (Sandbox Code Playgroud)
我在路径中添加了以下行
C:\Program Files\Python 3.5\Scripts\;
C:\Program Files\Python 3.5\;
C:\Windows\System32;
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC;
C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC
Run Code Online (Sandbox Code Playgroud)
我的PC上有64位win 7设置.
什么是解决此错误和正确安装模块的解决方案pip.
安装Visual Studio 2015并在以前的项目上运行CMake后,CMake错误表明它无法找到C编译器.
The C compiler identification is unknown
The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:4 (PROJECT):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:4 (PROJECT):
No CMAKE_CXX_COMPILER could be found.
Run Code Online (Sandbox Code Playgroud)
我cl.exe在Visual Studio文件夹中搜索,C:\Program Files\Microsoft Visual Studio 14.0但找不到它.
如何使用Visual Studio 2015将CMake设置为在Windows上运行?
我刚刚安装了Windows 10 Creators Update(版本10.0.15063).
我安装了多个版本的Visual Studio(2012年,2013年,2015年和2017年).我几周前才安装了VS 2017.
在"VS2015 x64本机命令提示符"中运行时,CMake(版本3.8.1)不再找到C/C++编译器(在VS 2017命令提示符下运行时它可以正常工作).
内容CMakeLists.txt:
project (test)
add_executable (test test.cpp)
Run Code Online (Sandbox Code Playgroud)
(内容test.cpp无关紧要.)
在VS2015 x64本机命令提示符中进行CMake调用:
> mkdir build
> cd build
> cmake -G "Visual Studio 14 2015 Win64" ..
Run Code Online (Sandbox Code Playgroud)
CMake输出:
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:1 (project):
No CMAKE_C_COMPILER could be found.
CMake Error at CMakeLists.txt:1 (project):
No CMAKE_CXX_COMPILER could be found.
-- Configuring incomplete, …Run Code Online (Sandbox Code Playgroud) pip install pycrypto 使用python3.5.2可以正常工作,但是由于python3.6而失败并出现以下错误:
inttypes.h(26):错误C2061:语法错误:标识符'intmax_t'
我有一个全新的Python 3.6 + Selenium安装,现在想安装Clarifai 2.0.21.
以下命令失败:
python -m pip install clarifai==2.0.21
Run Code Online (Sandbox Code Playgroud)
起初它要求VC++ 14.0,但我有14.1(VS2017),所以我安装了VC++ 2015 BuildTools,它有14.0.这部分工作直到创建库.
我接下来得到了新的错误:
生成代码
完成生成代码
LINK:致命错误LNK1158:无法运行'rc.exe'错误:命令'C:\ Program Files(x86)\ Microsoft Visual Studio 14.0\VC\BIN\link.exe'失败,退出状态为1158
不知道我的装置中是否缺少某些东西?谢谢
我刚刚运行了"pip install -U steem"命令,安装工作正常,直到它无法安装pycrypto.之后我做了"pip install cryptography"命令,因为我认为它是缺少的包.所以我的问题是,如何在没有pycrypto-error(或者另外还有pycrypto-package)的情况下安装steem,以及如何卸载我不需要的cryptography-Package.(我使用的是Windows 7和Python 3)
Requirement already up-to-date: python-dateutil in c:\users\***\appdata\lo
cal\programs\python\python36\lib\site-packages (from dateparser->maya->steem)
Collecting regex (from dateparser->maya->steem)
Downloading regex-2017.06.23-cp36-none-win_amd64.whl (245kB)
100% |????????????????????????????????| 245kB 499kB/s
Collecting pytzdata (from pendulum->maya->steem)
Downloading pytzdata-2017.2-py2.py3-none-any.whl (462kB)
100% |????????????????????????????????| 471kB 965kB/s
Installing collected packages: urllib3, idna, chardet, certifi, requests, pycryp
to, funcy, w3lib, voluptuous, diff-match-patch, scrypt, prettytable, appdirs, la
ngdetect, ruamel.yaml, humanize, tzlocal, regex, dateparser, pytzdata, pendulum,
maya, ecdsa, pylibscrypt, ujson, toolz, steem
Running setup.py install for pycrypto ... error
Complete output …Run Code Online (Sandbox Code Playgroud) 我想在运行以下命令时在 Windows 系统中安装协议缓冲区:
cmake -G "NMake Makefiles" -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=../../../../install ../..
Run Code Online (Sandbox Code Playgroud)
我收到这个错误:
-- The C compiler identification is MSVC 19.22.27905.0
-- The CXX compiler identification is MSVC 19.22.27905.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.15/Modules/CMakeTestCCompiler.cmake:60 (message):
Run Code Online (Sandbox Code Playgroud)
C 编译器:
"C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.22.27905/bin/Hostx64/x64/cl.exe"
Run Code Online (Sandbox Code Playgroud)
无法编译简单的测试程序。它失败并显示以下输出:
Change Dir: C:/ProtoBuff/protobuf-3.9.0/cmake/build/release/CMakeFiles/CMakeTmp
Run Build Command(s):nmake /nologo cmTC_5d4c2\fast && "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Tools\MSVC\14.22.27905\bin\HostX64\x64\nmake.exe" -f …Run Code Online (Sandbox Code Playgroud) 我已经使用离线安装程序安装了Qt qt-opensource-windows-x86-msvc2015_64-5.8.0.我有使用c ++构建工具安装的visual studio社区版2017.因为它的编译器与qt版本不兼容,所以我从http://landinghub.visualstudio.com/visual-cpp-build-tools安装了visual c ++ build tools 2015.当我尝试编译项目时,它会出错.这是我的qt工具包的样子,
:-1: error: LNK1158: cannot run 'rc.exe'
有人可以弄清楚这是什么错误以及如何解决它.谢谢.
cmake ×3
python ×3
windows ×3
c++ ×2
pycrypto ×2
clarifai ×1
command-line ×1
python-3.6 ×1
python-3.x ×1
qt ×1
visual-c++ ×1
windows-10 ×1