I downloaded python 3.6 installation file (tgz file).
I installed it the following way:
$ ./configure
$ make
$ su root
Password:
$ make install
Then, python installed in /usr/local/bin
but I want to install python in /usr/bin
.
How can I do that?
Install your “dev” Python into /usr/local/python-x.y.z or a similar location. Setup your shell (e.g. path variable and aliases) so that “python” and “python3” will run your preferred version. In scripts, use #!/usr/bin/python3 to run with system Python. Use #!/usr/bin/env python3 to run with your dev version.
There should be an option '--prefix' so that
> ./configure --prefix=/usr
> make
> sudo make install
should do the job. Otherwise, search for 'usr/local/bin' in the configuration script and replace accordingly.
This following commands worked for me :
./configure --prefix=/usr
make
make install
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With