python. 创建虚拟环境 conda_Conda正在工作,但无法创建虚拟环境

我在与Conda建立虚拟环境时遇到问题。当我尝试诸如conda --version之类的命令时,Conda正在工作(我猜)。

但是当我尝试conda create -n mynewenv python=2.7时,我得到了下面的一个错误。在Traceback (most recent call last):

File "/opt/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 1003, in __call__

return func(*args, **kwargs)

File "/opt/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 74, in _main

from ..base.context import context

File "/opt/anaconda3/lib/python3.6/site-packages/conda/base/context.py", line 30, in

from ..common._os.linux import linux_get_libc_version

ModuleNotFoundError: No module named 'conda.common._os.linux'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/opt/anaconda3/bin/conda", line 13, in

sys.exit(main())

File "/opt/anaconda3/lib/python3.6/site-packages/conda/cli/main.py", line 150, in main

return conda_exception_handler(_main, *args, **kwargs)

File "/opt/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 1291, in conda_exception_handler

return_value = exception_handler(func, *args, **kwargs)

File "/opt/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 1006, in __call__

return self.handle_exception(exc_val, exc_tb)

File "/opt/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 1050, in handle_exception

return self.handle_unexpected_exception(exc_val, exc_tb)

File "/opt/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 1061, in handle_unexpected_exception

self.print_unexpected_error_report(error_report)

File "/opt/anaconda3/lib/python3.6/site-packages/conda/exceptions.py", line 1116, in print_unexpected_error_report

from .base.context import context

File "/opt/anaconda3/lib/python3.6/site-packages/conda/base/context.py", line 30, in

from ..common._os.linux import linux_get_libc_version

ModuleNotFoundError: No module named 'conda.common._os.linux'

我试图在网上搜索与所述模块conda.common._os.linux有关的错误,但没有找到任何错误。我想知道我在哪里可以得到这个模块或者我应该重新配置conda?服务器当前使用的是python3.6.7和conda4.6.14。在

更新

显然康达不工作了。对于任何其他conda参数,例如info和{},我都会得到相同的错误消息。唯一的工作参数是-h和-V来检查帮助消息和版本检查。如何重新配置conda?这是在共享服务器上。在

你可能感兴趣的:(python.,创建虚拟环境,conda)