如果我跑:
path/bin/python -m pip install jupyter它显示了Requirement already satisfied: jupyter和所有其他包,但是如果我运行:
path/bin/python -m jupyter notebook --no-browser --notebook-dir=~/ml/test/gpu-m1-availability-test.ipynb我得到:
path/bin/python: No module named jupyter我遗漏了什么?为什么一方面它显示已经满足,但试图运行它不起作用?
Config/Settings复制:
我在使用M1的mac上,使用上一个微型锻造版本,并使用以下命令创建了一个环境:
conda env create -f ml-apple-metal.yml -n ml-apple-metal
conda activate ml-apple-metal
conda install nb_conda
python -m ipykernel install --user --name ml-apple-metal --display-name "Python 3.9 (ML lib metal)"ml-apple-metal.yml包含:
name: ml-apple-metal
dependencies:
- tensorflow-datasets
- python=3.9
- pip>=19.0
- jupyter
- apple::tensorflow-deps==2.5.0
- scikit-learn
- pydot
- graphviz
- scipy
- pandas
- pandas-datareader
- matplotlib
- pillow
- tqdm
- requests
- h5py
- pyyaml
- flask
- boto3
- pytorch
- torchvision
- imageio
# - dash-renderer
# - dash
# - dash-html-components
# - dash-core-components
# - plotly
- pip:
- tensorflow-macos
- tensorflow-probability
- tensorflow-metal
- bayesian-optimization
- gym
- kaggle
- kaleido发布于 2022-07-20 18:08:25
弄明白了!
python -m jupyter notebook --no-browser只有在已经运行jupyter服务器时才能工作。
所以,如果你在一个终端上这样做:
jupyter notebook --no-browser然后在另一个终端试试这个:
python -m jupyter notebook --no-browser起作用了..。但它确实打开了另一本笔记本。不知道那是怎么回事。
https://stackoverflow.com/questions/73055798
复制相似问题