我已经阅读了所有其他谷歌来源和SO线程,没有任何工作.
Python 2.7.3 32bit安装上Windows 7 64bit.下载,解压缩,然后尝试安装PyCrypto结果"Unable to find vcvarsall.bat".
所以我安装MinGW并在安装行上将其作为首选编译器.但后来我得到了错误"RuntimeError: chmod error".
我怎么在世界上绕过这个?我尝试过使用pip,它给出了相同的结果.我找到了一个预先构建的PyCrypto 2.3二进制文件并安装了它,但它在系统上找不到(不工作).
有任何想法吗?
我正在尝试运行,pip install mysql-python connector但它一直给我一个错误" 无法打开包含文件:'config-win.h' ".
安装在我的Mac和另一台Windows机器上运行正常,但不是这个.我已经下载了Visual Studio C++并尝试安装32位和64位.
_mysql.c(42) : fatal error C1083: Cannot open include file: 'config-win.h': No s
uch file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\BIN\\c
l.exe' failed with exit status 2
----------------------------------------
Cleaning up...
Command C:\Users\Admin1\Desktop\python\virtual\Scripts\python.exe -c "import set
uptools, tokenize;__file__='C:\\Users\\Admin1\\Desktop\\python\\virtual\\build\\
MySQL-python\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).r
ead().replace('\r\n', '\n'), __file__, 'exec'))" install --record c:\users\admin
1\appdata\local\temp\1\pip-6pmwrd-record\install-record.txt --single-version-ext
ernally-managed --compile --install-headers C:\Users\Admin1\Desktop\python\virtu
al\include\site\python2.7 failed with error code 1 in C:\Users\Admin1\Desktop\py
thon\virtual\build\MySQL-python
Storing debug log for …Run Code Online (Sandbox Code Playgroud) 我为Python 3.3和3.4找到了一些PyCrypto安装程序,但没有为Python 3.5提供任何安装程序.
当我尝试使用PyCrypton时pip install,它说:
warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
Run Code Online (Sandbox Code Playgroud)
有没有办法在Windows 10中的Python 3.5上安装PyCrypto?谢谢!
我在使用 tensorflow 时遇到问题。我想使用 ImageDataGenerator,但收到错误 ModuleNotFoundError: No module named 'tf'。不知道是什么问题。我添加了这个 tf. 要测试的版本是否有效,并显示了 tensorflow 的版本。
import tensorflow as tf
from tensorflow import keras
print(tf.__version__)
from tf.keras.preprocessing.image import ImageDataGenerator
Run Code Online (Sandbox Code Playgroud)
当我运行这段代码时,我得到了这个:
2.1.0
Traceback (most recent call last):
File "q:/TF/Kamen papir maaze/rks.py", line 14, in <module>
from tf.keras.preprocessing.image import ImageDataGenerator
ModuleNotFoundError: No module named 'tf'
Run Code Online (Sandbox Code Playgroud) python ×4
pycrypto ×2
keras ×1
mysql ×1
mysql-python ×1
python-2.7 ×1
tensorflow ×1
windows ×1