在Ubuntu 20.04 LTS中安装Miniconda



我正在尝试在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

只需使用

bash Miniconda3-latest-Linux-x86_64.sh

你可以去

这帮助了我pip3 uninstall conda。这是来自另一个堆叠流回答

相关内容

  • 没有找到相关文章

最新更新