简体   繁体   English

我搞砸了 conda,命令在 Mac 上不起作用

[英]I messed up conda, commands not working on Mac

its my fist time im working with python on an apple product and outside of the anaconda ide....这是我第一次与 python 一起在苹果产品上工作,在 anaconda ide 之外......

I followed the instructions of我按照指示

"18 Steps to install tensorflow_macos on the M1 MacBook (2020)" and it worked. “在 M1 MacBook (2020) 上安装 tensorflow_macos 的 18 个步骤”并且有效。 It was working fine.它工作正常。

Later I tried to install Jupyter Notebook which did not work.后来我尝试安装 Jupyter Notebook,但没有成功。 I tried a lot and probably did a lot wrong.我尝试了很多,可能做错了很多。

I got some "killed" msg in the Terminal我在终端收到了一些“被杀死”的信息

Now Conda (Miniforge3) is installed but the commands are not executed, just ignored.现在安装了 Conda (Miniforge3) 但命令没有执行,只是被忽略了。

kleimie@Air-von-Andreas ~ % conda list
kleimie@Air-von-Andreas ~ % conda help
kleimie@Air-von-Andreas ~ % conda --version             
conda 4.9.2

I also can not activate the set environment我也无法激活设置的环境

Does this PATH make sense?这个 PATH 有意义吗? PATH=/Users/kleimie/miniforge3/bin:/Users/kleimie/miniforge3/condabin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin

Steps to install Tensorflow on Mac OS using conda environment Mac OS使用conda环境安装Tensorflow的步骤

#download and install anaconda
https://www.anaconda.com/products/individual#macos

#Create virtual environment 
conda create --name tf python=3.8

#Activate environment
source activate tf

#install Tensorflow
conda install tensorflow

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM