我尝试在我的Ubuntu 20.04 LTS中安装Miniconda。当尝试运行脚本Miniconda3-latest-Linux-x86_64.sh时,它不成功。
我在安装后尝试运行conda init
时遇到此错误。安装不成功。当我运行conda list
时,它显示未安装Miniconda。有人能帮助我吗?
./Miniconda3-latest-Linux-x86_64.sh: 494: [[: not found
Traceback (most recent call last):
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/common/configuration.py", line 42, in <module>
from cytoolz.dicttoolz import merge
File "/home/dreamepic/.local/lib/python3.8/site-packages/cytoolz/__init__.py", line 3, in <module>
from .functoolz import *
File "cytoolz/functoolz.pyx", line 9, in init cytoolz.functoolz
File "/home/dreamepic/.local/lib/python3.8/site-packages/cytoolz/_signatures.py", line 1, in <module>
from toolz._signatures import *
ModuleNotFoundError: No module named 'toolz'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/exceptions.py", line 626, in conda_exception_handler
return_value = func(*args, **kwargs)
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/cli/main.py", line 85, in _main
from ..base.context import context
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/base/context.py", line 21, in <module>
from ..common.configuration import (Configuration, LoadError, MapParameter, PrimitiveParameter,
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/common/configuration.py", line 47, in <module>
from .._vendor.toolz.functoolz import excepts
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/_vendor/toolz/functoolz.py", line 467
f.__name__ for f in reversed((self.first,) + self.funcs),
^
SyntaxError: Generator expression must be parenthesized
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/common/configuration.py", line 42, in <module>
from cytoolz.dicttoolz import merge
File "/home/dreamepic/.local/lib/python3.8/site-packages/cytoolz/__init__.py", line 3, in <module>
from .functoolz import *
File "cytoolz/functoolz.pyx", line 9, in init cytoolz.functoolz
File "/home/dreamepic/.local/lib/python3.8/site-packages/cytoolz/_signatures.py", line 1, in <module>
from toolz._signatures import *
ModuleNotFoundError: No module named 'toolz'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/dreamepic/Desktop/miniconda3/bin/conda", line 13, in <module>
sys.exit(main())
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/cli/main.py", line 162, in main
return conda_exception_handler(_main, *args)
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/exceptions.py", line 630, in conda_exception_handler
return handle_exception(e)
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/exceptions.py", line 620, in handle_exception
print_unexpected_error_message(e)
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/exceptions.py", line 561, in print_unexpected_error_message
from conda.base.context import context
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/base/context.py", line 21, in <module>
from ..common.configuration import (Configuration, LoadError, MapParameter, PrimitiveParameter,
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/common/configuration.py", line 47, in <module>
from .._vendor.toolz.functoolz import excepts
File "/home/dreamepic/.local/lib/python3.8/site-packages/conda/_vendor/toolz/functoolz.py", line 467
f.__name__ for f in reversed((self.first,) + self.funcs),
^
SyntaxError: Generator expression must be parenthesized
If you'd prefer that conda's base environment not be activated on startup,
set the auto_activate_base parameter to false:
conda config --set auto_activate_base false
2条答案
按热度按时间hc2pp10m1#
这帮助了我
pip3 uninstall conda
。这是来自另一个堆栈溢出answerkx5bkwkv2#
简单使用
你就可以走了