linux anaconda 的一些问题

1. 解决anaconda 安装的问题。

     要记着把 anaconda/bin 路径添加到 /etc/profile 并source,否则每次都需要conda

2. 解决下载速度慢。

   感觉豆瓣的速度碾压清华的速度啊。

   豆瓣(douban) http://pypi.douban.com/simple/ (推荐)
清华大学 https://pypi.tuna.tsinghua.edu.cn/simple/
阿里云 http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
中国科学技术大学 http://pypi.mirrors.ustc.edu.cn/simple/

同样以豆瓣镜像源为例,接下来我们安装pygame包,你可以替换成你想安装的其他包的名字.

pip install pygame -i http://pypi.douban.com/simple

这步如果出错,请将命令变换为

pip install pygame -i http://pypi.douban.com/simple --trusted-host pypi.douban.com

3。 安装transformers==2.6.0时候,出现sentencepiece安装不上的问题。

https://pypi.org/project/sentencepiece/#files

找对应的版本

然后对这个文件进行重命名:

mv sentencepiece-0.1.94-cp37-cp37m-manylinux2014_x86_64.whl sentencepiece-0.1.94-cp37-cp37m-linux.whl

最后

pip3 install --user sentencepiece-0.1.94-cp37-cp37m-linux.whl

pip install transformers==2.6.0



原文地址:https://www.cnblogs.com/dhName/p/14301776.html