亲爱的......
我有2个工作站。 在工作站1中,我可以在Windows命令提示符和Anaconda提示符下执行pip:
Windows命令提示符
C:\Users\myuser>pip show datetime
Name: DateTime
Version: 4.3
Summary: This package provides a DateTime data type, as known from Zope. Unless you need to communicate with Zope APIs, you're probably better off using Python's built-in datetime module.
Home-page: https://github.com/zopefoundation/DateTime
Author: Zope Foundation and Contributors
Author-email: zope-dev@zope.org
License: ZPL 2.1
Location: c:\program files (x86)\python 3.7.1\lib\site-packages
Requires: zope.interface, pytz
Required-by:
Anaconda提示
上面显示的结果相同
但是在工作站2中,我无法在Anaconda Prompt上执行pip(仅在Windows命令提示符下) Windows命令提示符
上面显示的结果相同
Anaconda提示
(C:\ProgramData\Anaconda3) C:\Users\myuser>pip show pip
Traceback (most recent call last):
File "c:\programdata\anaconda3\lib\runpy.py", line 193, in run_module_as_main
"_ main __", mod_spec)
File "c:\programdata\anaconda3\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "C:\ProgramData\Anaconda3\Scripts\pip.exe_main.py", line 9, in
TypeError: 'module' object is not callable
有人可以帮我解决此错误吗?
谢谢