无法导入预处理python
我用的是spyder Anaconda。我不能进口无法导入预处理python,python,jupyter-notebook,Python,Jupyter Notebook,我用的是spyder Anaconda。我不能进口 from preprocessing import parse_annotation,BatchGenerator 我试着用 pip install preprocessing 出现以下错误 Requirement already satisfied: preprocessing in c:\users\shahik\anaconda3\lib\site-packages (0.1.13) Requirement already s
from preprocessing import parse_annotation,BatchGenerator
我试着用
pip install preprocessing
出现以下错误
Requirement already satisfied: preprocessing in
c:\users\shahik\anaconda3\lib\site-packages (0.1.13)
Requirement already satisfied: nltk==3.2.4 in c:\users\shahik\anaconda3\lib\site-
packages (from preprocessing) (3.2.4)
Requirement already satisfied: sphinx-rtd-theme==0.2.4 in
c:\users\shahik\anaconda3\lib\site-packages (from preprocessing) (0.2.4)
Requirement already satisfied: six in c:\users\shahik\anaconda3\lib\site-packages
(from nltk==3.2.4->preprocessing) (1.10.0)
notebook 5.3.1 requires terminado>=0.8.1, which is not installed.
notebook 5.3.1 has requirement jupyter_client>=5.2.0, but you'll have jupyter-
client 5.0.1 which is incompatible.
notebook 5.3.1 has requirement jupyter_core>=4.4.0, but you'll have jupyter-core
4.3.0 which is incompatible.
还尝试从conda命令安装,但失败。如何解决这些兼容性或其他问题?您是否尝试过使用virtualenv?它适合我,Python 3.5.2您是如何启动Python应用程序的?确保解释器与安装预处理的解释器相同。请显示执行导入语句时出现的错误。如果在Jupyter中选择的“内核”与安装包的环境中选择的“内核”不同,则可能会发生这种情况。要比较两者,请尝试在安装包的命令行上运行
where python
,然后运行!Jupyter笔记本中的python
。在virtualenv(预处理)C:\Users\shahik\Anaconda3>pip中使用python 3.5已满足安装预处理要求:在python命令给出的C:\Users\shahik\Anaconda3\envs\preprocessing\lib\site包(0.1.13)中进行预处理,C:\Users\shahik\Anaconda3\python.exe C:\Users\shahik\Anaconda3\envs\preprocessing\python.exe C:\Users\shahik\AppData\Local\Programs\python\Python36\Scripts\python.exe