Source installation and installation of Python

  1. Download
# wget http://www.python.org/ftp/python/3.3.3/Python-3.3.3.tgz

100%[===================================================================================================================>] 16,808,057  23.0M/s time 0.7s    

2015-04-26 13:15:57 (23.0 MB/s) - `Python-3.3.3.tgz'Save to[16808057/16808057]
  1. Defrost
# tar zxvf Python-3.3.3.tgz

3.configure ・ If you have a Makefile, it should be okay

# cd  Python-3.3.3
[root@v157-7-196-182 Python-3.3.3]# ./configure --prefix=/usr/local/python
creating Modules/Setup
creating Modules/Setup.local
creating Makefile

4.Maketest ・ For some reason, an error ... URL mismatch?

# make test 
======================================================================
FAIL: test_geturl (test.test_urllibnet.urlopenNetworkTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/root/Python-3.3.3/Lib/test/test_urllibnet.py", line 88, in test_geturl
    self.assertEqual(gotten_url, URL)
AssertionError: 'https://www.python.org/' != 'http://www.python.org/'
- https://www.python.org/
?     -
+ http://www.python.org/


----------------------------------------------------------------------
Ran 13 tests in 0.472s

FAILED (failures=1, errors=3)
test test_urllibnet failed
make: *** [test]Error 1
  1. (don't care) Make ・ I was able to go
# make 

# ll /usr/local/python/bin/python3.3
-rwxr-xr-x.2 root root 7785682 April 26 14:26 2015 /usr/local/python/bin/python3.3
  1. Run in interactive mode
# python
Python 2.6.6 (r266:84292, Jan 22 2014, 09:42:36) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> print "Hello, World!"
Hello, World!

For the time being, Done!

Recommended Posts

Source installation and installation of Python
Installation of SciPy and matplotlib (Python)
Installation of Visual studio code and installation of python
Installation of Python 3.3 rc1
Installation of matplotlib (Python 3.3.2)
Installation of Python3 and Flask [Environment construction summary]
Python installation and basic grammar
Python (Python 3.7.7) installation and basic grammar
Python installation
[Python] Chapter 01-02 About Python (Execution and installation of development environment)
Environment construction of python and opencv
The story of Python and the story of NaN
This and that of python properties
Installation and easy usage of pytest
Coexistence of Python2 and 3 with CircleCI (1.0)
Summary of Python indexes and slices
Reputation of Python books and reference books
Installation of Anaconda3
Introduction of Python
Installation of CentOS 8
Python installation and package management with pip
Extraction of tweet.js (json.loads and eval) (Python)
Python installation (Windows)
Connect a lot of Python or and and
Basics of Python ①
Basics of python ①
Copy of python
Easy introduction of python3 series and OpenCV3
Idempotent automation of Python and PyPI setup
Full understanding of Python threading and multiprocessing
Python installation 2020 (macOS)
Python3.4 installation notes
Project Euler # 1 "Multiples of 3 and 5" in Python
Introduction of Python
[Python] Read the source code of Bottle Part 2
Correspondence summary of array operation of ruby and python
Summary of the differences between PHP and Python
The answer of "1/2" is different between python2 and 3
[Python of Hikari-] Chapter 08-04 Module (Installation of external library)
Compare the speed of Python append and map
[Python] Read the source code of Bottle Part 1
[Python] Chapter 02-01 Basics of Python programs (operations and variables)
python development environment -use of pyenv and virtualenv-
Links and memos of Python character code strings
Comparison of R and Python writing (Euclidean algorithm)
List of Python code to move and remember
[Python] A rough understanding of iterators, iterators, and generators
About the * (asterisk) argument of python (and itertools.starmap)
A discussion of the strengths and weaknesses of Python
About shallow and deep copies of Python / Ruby
Continuation of multi-platform development with Electron and Python
Explanation of edit distance and implementation in Python
[Python] Class type and usage of datetime module
Example of reading and writing CSV with Python
Comparison of Python and Ruby (Environment / Grammar / Literal)
Basic operation of Python Pandas Series and Dataframe (1)
[python] Compress and decompress
[Python] Operation of enumerate
List of python modules
Python and numpy tips
[Python] pip and wheel