Giter Club home page Giter Club logo

python-setup's Introduction

python-setup

pyenv with pipenv which has all kinds of compatibility

Befoe doing anything in centos check following article

https://www.linuxtut.com/en/e883e562fb7fddcfeec9/

Install Pyenv

  1. Installing Pyenv is typically done via running the following script:
curl https://pyenv.run | bash
  1. Shell Setup

Pyenv requires you to run the following code in the shell prior to usage. This can be run via the .bashrc file at the initialization of the shell.

export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"

Using pyenv to install python

Next, we will run the install argument with a version, this will install on the system of Python version we requested. Show available list of python version to install:

pyenv install -l

Insall a specific version:

pyenv install 3.9.2

To see all the installed versions, just run:

pyenv versions

Set as the global python version running:

pyenv global 3.8.8

Check your global version, just run:

python -V

To set a local version, go to the project folder in the terminal:

cd ~/path/to/the/project/folder

And set the local version, for example, 3.9.1:

pyenv local 3.9.1

To uninstall an already installed Python version.

pyenv uninstall <Python version>

For using pipevn follow this link: https://www.singlestoneconsulting.com/blog/setting-up-your-python-environment

Reference:

  1. https://www.rootstrap.com/blog/how-to-manage-your-python-projects-with-pipenv-pyenv

python-setup's People

Contributors

mrahman-vf-ic-bd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.