好物优选点击查看详情 京东购买

暂无内容

群晖nas安装python,在群晖中安装python3及pip

在群晖中安装python3及pip

2021-03-16 00:30:46

9点赞

23收藏

2评论

如何才能快速换一种生活方式?参加#牛年Flag#征稿活动,征集你2021年的购物学习生活计划!>>点击查看活动详情<

# 安装python3

套件中心中搜索安装python3

控制面板终端机和SNMP中开启启动SSH功能

连接群晖ssh

输入sudo -i 输入密码获取root权限

为python3创建软连接

dsm 6.2.3下路径为@appstore/py3k/usr/local/bin/python3

volume1为安装时选择的盘符

```shell

ln -s /volume1/@appstore/py3k/usr/local/bin/python3 /usr/bin/python3

```

执行python3 -V可看到输出信息

```shell

Python 3.8.2

```

# 安装pip与setuptools

手动下载pip与setuptools

```shell

https://files.pythonhosted.org/packages/b7/2d/ad02de84a4c9fd3b1958dc9fb72764de1aa2605a9d7e943837be6ad82337/pip-21.0.1.tar.gz

https://files.pythonhosted.org/packages/b8/d3/155ebd29b6e34ac283614d3a1e7f476ffb93f535aa0d8b3647fa014815aa/setuptools-54.1.2.tar.gz

```

也可使用 wget 下载

```shell

wget https://files.pythonhosted.org/packages/b7/2d/ad02de84a4c9fd3b1958dc9fb72764de1aa2605a9d7e943837be6ad82337/pip-21.0.1.tar.gz

wget https://files.pythonhosted.org/packages/b8/d3/155ebd29b6e34ac283614d3a1e7f476ffb93f535aa0d8b3647fa014815aa/setuptools-54.1.2.tar.gz

```

解压setuptools包并编译安装

```shell

tar -zxvf setuptools-54.1.2.tar.gz

cd setuptools-54.1.2.tar.gz

python3 setup.py build

python3 setup.py install

```

解压pip包并编译安装

```shell

tar -zxvf pip-21.0.1.tar.gz

cd pip-21.0.1.tar.gz

python3 setup.py build

python3 setup.py install

```

为pip创建软连接 注意路径

```shell

ln -s /volume1/@appstore/py3k/usr/local/bin/pip3 /usr/bin/pip3

```

执行pip3 -V可看到输出信息

```shell

pip 21.0.1 from /var/packages/py3k/target/usr/local/lib/python3.8/site-packages/pip-21.0.1-py3.8.egg/pip (python 3.8)

```

920f2025c6db371879d593501d49ce8f.png

c2ad9c123c4d84295e50d901fd065b58.png

原文链接:https://blog.csdn.net/weixin_39567943/article/details/116222798?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522167586359916800184116638%2522%252C%2522scm%2522%253A%252220140713.130102334.pc%255Fblog.%2522%257D&request_id=167586359916800184116638&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~blog~first_rank_ecpm_v1~times_rank-12-116222798-null-null.blog_rank_default&utm_term=%E9%BB%91%E7%BE%A4%E6%99%96%2C%E7%BE%A4%E6%99%96%2Cnas%2C%E8%9C%97%E7%89%9B%E6%98%9F%E9%99%85%2CDSM%EF%BC%8C%E5%86%85%E7%BD%91%E7%A9%BF%E9%80%8F%2Cipv6%2C%E8%BF%9C%E7%A8%8B%E8%AE%BF%E9%97%AE%2Cwordpress%EF%BC%8C%E5%BB%BA%E7%AB%99%2C%E9%98%BF%E9%87%8C%E4%BA%91%2C%E8%85%BE%E8%AE%AF%E4%BA%91%2C%E5%9F%9F%E5%90%8D%2C%E4%BA%91%E6%9C%8D%E5%8A%A1%E5%99%A8%2C

© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享