可以把python安装从一台服务器复制到另一台服务器吗?

如果是完全一样的系统,答案是可以。

# 比如,把python3.6复制到另一台机器去。
tar -czvf py3.6.7.tar.gz /usr/local/bin/python3.6 /usr/local/bin/python3.6m /usr/local/bin/python3.6m-config /usr/local/bin/pip3.6 /usr/local/bin/pyvenv-3.6 /usr/local/bin/pydoc3.6 /usr/local/lib/python3.6

#在另一台服务器上:
tar -xzvf py3.6.7.tar.gz -C /

Leave a Reply

Your email address will not be published. Required fields are marked *