无论如何创建虚拟环境都会报错TypeError: 'module' object is not callable
virtualenv test
New python executable in /home/work/share/myenv/feed/train/test/bin/python
Installing setuptools, pip, wheel...
Complete output from command /home/work/share/mye...rain/test/bin/python - setuptools pip wheel:
Traceback (most recent call last):
File "<stdin>", line 7, in <module>
File "/home/work/local/lib/python2.7/site-packages/virtualenv_support/pip-8.1.1-py2.py3-none-any.whl/pip/__init__.py", line 5, in <module>
File "/home/work/local/lib/python2.7/logging/__init__.py", line 94, in <module>
_startTime = time.time()
TypeError: 'module' object is not callable
----------------------------------------
搜了好久不知道咋回事。后来才发现,自己的文件夹中有一个time.py的文件冲突了,修改名字,删除pyc文件就好了。