About installing python 3 on the Sakura rental server.

Asked 2 years ago, Updated 2 years ago, 18 views

I cannot install the Sakura rental server python3, so I would like to know how to solve this problem.

http://ura22.sakura.ne.jp/pycgi/preparation.html
As per the above site, we executed exactly the same command except for the python version.
■ Execute Commands

mkdir local
mkdir local/src
cd local/
cdsrc/
wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tar.xz --no-check-certificate
tar-xjf Python-3.4.3.tar.xz
cd Python - 3.4.3
./configure --prefix=$HOME/local/python/
make
make install

Add the following to .cshrc

set path=($HOME/local/python/bin)
setenv PYTHON$HOME/local/python/lib

If you enter python3 in this state, -bash:python3:command not found.

Thank you for your cooperation.

*I don't think it's related, but I created a django environment in python2 using http://blog.chibiegg.net/2015/05/05_23_791.htm.

python

2022-09-29 21:52

1 Answers

First of all, the description of the reference site is explained when the compressed format of the source package is tar.bz2.
On the other hand, for 3.4.3, 3.4.3.tgz is the official download page link (Gzipped source tarball.

)

Therefore, wget is

wget https://www.python.org/ftp/python/3.4.3/Python-3.4.3.tgz --no-check-certificate

Shouldn't we? (There seems to be a tar.xz version, but I don't know what it is for.)

For .tgz, tar options are different when thawing.

tar-xzf Python-3.4.3.tar.tgz

For your information, for .tar.xz:

tar-xJf Python-3.4.3.tar.xz

Yes, and the latest version of Python is 3.5.1.


2022-09-29 21:52

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.