(emotion) G:\shiyan\sencond_Dimensional\Facial-emotion-Recognition-master>pip3 list
Traceback (most recent call last):
File "F:\anaconda\envs\emotion\Scripts\pip3-script.py", line 11, in
load_entry_point('pip==20.0.2', 'console_scripts', 'pip3')()
File "F:\anaconda\envs\emotion\lib\site-packages\pkg_resources\__init__.py", line 484, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "F:\anaconda\envs\emotion\lib\site-packages\pkg_resources\__init__.py", line 2707, in load_entry_point
return ep.load()
File "F:\anaconda\envs\emotion\lib\site-packages\pkg_resources\__init__.py", line 2325, in load
return self.resolve()
File "F:\anaconda\envs\emotion\lib\site-packages\pkg_resources\__init__.py", line 2331, in resolve
module = __import__(self.module_name, fromlist=['__name__'], level=0)
File "F:\anaconda\envs\emotion\lib\site-packages\pip\_internal\__init__.py", line 42, in
from pip._internal import cmdoptions
File "F:\anaconda\envs\emotion\lib\site-packages\pip\_internal\cmdoptions.py", line 16, in
from pip._internal.index import (
ImportError: cannot import name 'FormatControl'
折磨了很久,我以为出现什么问题了,最终降低了pip版本,最终可以使用。
在此网站上https://pypi.org/project/pip/19.1.1/#files
点击下载
解压安装
python setup.py install
测试可以使用
在运行代码时出现问题
ValueError: numpy.ufunc size changed, may indicate binary incompatibility. Expected 216 from C header, got 192 from PyObject
更新numpy包
pip install --upgrade numpy
conda 与pip能不混合用尽量不要要混合使用
pip不要随便更新升级本