![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Ubuntu&Python
Some collections.
liulinyi007
这个作者很懒,什么都没留下…
展开
-
在anaconda环境里设置环境变量
Saving environment variables in conda转载 2021-02-03 20:30:41 · 713 阅读 · 0 评论 -
Pytorch GPU 设置
a. os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" # os.environ["CUDA_VISIBLE_DEVICES"]='0,1,2,3' net = net.cuda() input = input.cuda() output = output.cuda() b. device = torch.device('cude:0' if ...转载 2020-03-22 08:47:28 · 801 阅读 · 0 评论 -
Python的一些收集
1. 编译.py为.pyc和.pyo python -m py_compile file.py python -O -m py_compile file.py原创 2020-02-29 01:14:25 · 312 阅读 · 0 评论 -
How to Directory in a Docker Container.
How to Directory in a Docker Container. 将文件路径挂载在Docker Container上. 1. Mount the current directory. docker run -it -v "$(pwd)":/Datasets $Container_name /bin/bash 2. Mount the specified director...原创 2020-02-25 08:28:35 · 130 阅读 · 0 评论 -
pip和apt的区别
转自https://askubuntu.com/questions/431780/apt-get-install-vs-pip-install pip和apt的区别 PyPIis the Python Package Index — a repository of python modules. pipis used to download and install packages di...翻译 2020-01-29 21:23:32 · 1067 阅读 · 0 评论 -
关于conda 的收集
可以在以下路径找.condarc if on_win: SEARCH_PATH = ( 'C:/ProgramData/conda/.condarc', 'C:/ProgramData/conda/condarc', 'C:/ProgramData/conda/condarc.d', ) else: SEARCH_PATH = ( '/etc/conda/...原创 2020-01-22 19:28:43 · 2024 阅读 · 0 评论