Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conda相关 #70

Open
ysl2 opened this issue Jan 5, 2025 · 3 comments
Open

Conda相关 #70

ysl2 opened this issue Jan 5, 2025 · 3 comments

Comments

@ysl2
Copy link
Owner

ysl2 commented Jan 5, 2025

创建python2虚拟环境

Ref: https://stackoverflow.com/questions/67380286/anaconda-channel-for-installing-python-2-7

CONDA_SUBDIR=osx-64 conda create -n py27 python=2.7  # include other packages here

# ensure that future package installs in this env stick to 'osx-64'
conda activate py27
conda config --env --set subdir osx-64
@ysl2
Copy link
Owner Author

ysl2 commented Jan 5, 2025

pip损坏修复

Ref: https://stackoverflow.com/questions/49940813/pip-no-module-named-internal

# For python2.7
curl https://bootstrap.pypa.io/pip/2.7/get-pip.py -o get-pip.py
python2.7 get-pip.py --force-reinstall

# For python3
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python3 get-pip.py --force-reinstall

@ysl2
Copy link
Owner Author

ysl2 commented Jan 5, 2025

包安装位置:

假设conda安装位置是/Users/yusongli/.vocal/mambaforge,环境名称是TCSTest,则pip包的位置在:

/Users/yusongli/.vocal/mambaforge/envs/TCSTest/lib/python2.7/site-packages

@ysl2
Copy link
Owner Author

ysl2 commented Jan 5, 2025

Error while loading conda entry point: conda-libmamba-solver (libarchive.so.20: cannot open shared object file: No such file or directory)

CondaValueError: You have chosen a non-default solver backend (libmamba) but it was not recognized. Choose one of: classic

解决方法:

conda install --solver=classic conda-forge::conda-libmamba-solver conda-forge::libmamba conda-forge::libmambapy conda-forge::libarchive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant