wget -c https://mirrors.tuna.tsinghua.edu.cn/anaconda/miniconda/Miniconda3-py39_4.9.2-Linux-x86_64.sh
bash Miniconda3-py39_4.9.2-Linux-x86_64.sh
source ~/.bashrc
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge
conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda
conda config --set show_channel_urls yes
conda create -n ctr66 python
conda activate ctr66
pip install -i https://mirrors.aliyun.com/pypi/simple tensorflow-gpu
conda install ipykernel
python -m ipykernel install --user --name [your_name] --display-name [your_nmae]
pip install jupyterlab # 安装jupyter
pip install jupyterlab-language-pack-zh-CN # 安装汉化包,需要自己选择语言
jupyter lab --generate-config
jupyter lab password
vim ~/.jupyter/jupyter_lab_config.py
c.ServerApp.allow_remote_access = True # 允许远程访问
c.ServerApp.allow_root = True # 允许root运行
c.ServerApp.notebook_dir = u'工作文件夹' # 设置工作目录,默认为用户家目录
c.ServerApp.ip = '*' # 监听地址
c.ServerApp.port = 8888 # 运行端口,默认8888
c.ServerApp.password = '刚复制的字符串' # 密码
c.ServerApp.open_browser = False # 不打开浏览器
nohup python -m jupyterlab --allow-root > ~/.jupyter/jupyter.log 2>&1 &!!!!!!
Linux下配tensorflow环境
最新推荐文章于 2023-06-22 11:41:01 发布