In M1 series chips, the MAC uses CONDA to switch the environment in order to directly install various libraries or other operations in the target environment. Otherwise, it is directly installed in the python environment in miniforge 3, rather than the python environment being used.
(if CONDA install package_name reports that the permission is not enough, it may be because sudo bash miniforge 3… SH is used when installing miniforge 3, that is, it is installed with the administrator’s permission) — the author’s machine is installed with sudo bash miniforge 3… Sh. here is only a record of the pit he stepped on. Using sudo CONDA install package_Name can solve the problem.
Problems encountered in configuring Python environment on macbook pro of m1pro chip:
After configuring CONDA’s Python environment, switch the environment to use
conda activate env_name #如 conda activate py39
Errors are reported as follows:
CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'
Solution:
Input directly at the terminal:
conda init zsh
Exit the Mac’s Zsh shell and restart. Then execute CONDA activate env_ Name.
Note: exit the current environment:
conda deactivate
Read More:
- [Solved] conda install DBUtils Error: To search for alternate channels that may provide the conda package you’re looking for
- [How to Solve] ERROR: Input: conda activate xxx
- [Solved] Conda Upgrade Error: PackageNotInstalledError: Package is not installed in prefix.
- VScode Run CONDA environment Error [How to Solve]
- [Solved] CONDA Error: Collecting package metadata (current_repodata.json): failed…
- Conda Install Library Error: failed with initial frozen solve. Retrying with flexible solve.
- [Solved] Conda install Error: An HTTP error occurred when trying to retrieve this URL. HTTP errors are often…
- [Solved] PyCharm pytest-html Install Error: Try to run this command from the system terminal. Make sure that you use
- [How to Fix]RuntimeError: Python is not installed as a framework, If you are using (Ana)Conda
- [Solved] ProxyError: Conda cannot proceed due to an error in your proxy configuration.
- [Solved] CONDA ENV create and run Error: F environment.yml under win10
- Pytorch: How to Handle error warning conda.gateways.disk.delete:unlink_or_rename_to_trash(140)
- [Solved] Pycharm Use pip to install package error: no such option –build-dir
- [Solved] CONDA installs scikit-learn 0.24 Error: LinkError
- MAC OS install python3 Error: Permission denied @ dir_s_mkdir-/usr/local/Frameworks
- Python: How to Solve mysqlclient Install Error in Mac
- [Solved] Pymysql Use Error: RuntimeError: ‘cryptography‘ package is required for sha256_password
- [Solved] VScode Configurate Python Interpreter Error: D:\Pros\virtuals\venvs\Scripts\Activate.ps1 cannot be loaded
- Pip Installation Warning: can’t install the package because of EnvironmentError
- Mac install python_Levenshtein Error: error: command ‘clang‘ failed with exit status 1