尽管已经安装了tensorflow
,但我无法导入(执行此操作时出现错误)。这是我的Pipfile
的内容:
[[source]]
name = "pypi"
url = "https://pypi.org/simple"
verify_ssl = true
[dev-packages]
[packages]
tensorflow = "*"
numpy = "*"
scipy = "*"
scikit-learn = "*"
pillow = "*"
h5py = "*"
keras = "*"
opencv-python = "*"
[requires]
python_version = "3.7"
我已经尝试解决此问题的东西:
pipenv update
pipenv install tensorflow
install package tensorflow
中单击以PyCharm
提示 Python版本:Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)] on win32
pip debug --verbose
的输出:
pip version: pip 19.2.3 from d:\.virtualenvs\keras-fer-pqstp19f\lib\site-packages\pip (python 3.7)
sys.version: 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 20:34:20) [MSC v.1916 64 bit (AMD64)]
sys.executable: d:\.virtualenvs\keras-fer-pqstp19f\scripts\python.exe
sys.getdefaultencoding: utf-8
sys.getfilesystemencoding: utf-8
locale.getpreferredencoding: cp1252
sys.platform: win32
sys.implementation:
name: cpython
Config variable 'Py_DEBUG' is unset, Python ABI tag may be incorrect
Config variable 'WITH_PYMALLOC' is unset, Python ABI tag may be incorrect
Compatible tags: 14
cp37-cp37m-win_amd64
cp37-none-win_amd64
py3-none-win_amd64
cp37-none-any
cp3-none-any
py37-none-any
py3-none-any
py36-none-any
py35-none-any
py34-none-any
py33-none-any
py32-none-any
py31-none-any
py30-none-any