Linux下配tensorflow环境

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 &!!!!!!
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值