常见问题收录

系统环境ubuntu16.04,64

  1. 安装pyenv,切换python环境
    pyenv参考链接

  2. 查看ubuntu版本
    cat /proc/version
    uname -a
    lsb_release -a

  3. 安装cuda
    安装链接
    cuda检查安装环境
    问题1:执行命令 > $lspci | grep -i nvidia,查看是否支持cuda,没有显示信息。
    解决:先执行命令sudo apt-get update;sudo apt-get upgrade

  4. 安装pytroch失败问题
    pytorch安装
    pip install torch==1.3.1 -f https://download.pytorch.org/whl/torch_stable.html

  5. vscode中切换anaconda环境
    vscode中配置anaconda虚拟环境

"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
  1. python pip升级报错
    pip --upgrade升级报错
    升级报错提示:AttributeError: 'NoneType' object has no attribute 'bytes'。
easy_install -U pip

7.jupyter配置conda虚拟环境
https://www.cnblogs.com/hgl0417/p/8204221.html

conda install -n  python= ipykernel
conda install -n  ipykernel

配置环境的显示名称

conda activate 
python -m ipykernel install --user --name 环境名称 --display-name "环境名称"
  1. win10配置ssh以及远程桌面
    netstat -an:查看服务是否启动
    mstsc:启动远程桌面
    用户名查看:在C盘用户目录下查看用户名。
    启动ssh: net start/stop sshd

9.配置远程[notebook]
参考配置
加密配置
证书生成
配置文件修改

  1. vscode中python引入相对路径报错
    python引入模块报错ValueError: attempted relative import beyond top-level package
    参考链接
import sys,os
sys.path.append(os.path.dirname(__file__) + os.sep + '../')

你可能感兴趣的:(常见问题收录)