Tasks at the start of a new python project

Installation of pyenv and virtualenv


$ brew install pyenv
$ brew install pyenv-virtualenv


$ sudo su - user
$ curl -L https://raw.githubusercontent.com/yyuu/pyenv-installer/master/bin/pyenv-installer | bash

Add the following to ~ / .bash_profile ~ or a message will appear, so if necessary

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

Environment creation

python installation, virtualenv creation

$ cd path/to/repo
$ pyenv install 3.5.2 #You can also select from the list by doing pyenv install whence
$ pyenv virtualenv 3.5.2 virtualenv-name # virtualenv-name is arbitrary
$ pyenv local virtualenv-name

Dependent package installation

$ cd path/to/repo
$ pip install pip-package #Individual installation
$ pip install -r requirements.txt #Bulk installation

Create dependent package list

$ cd path/to/repo
$ pip freeze > requirements.txt

Recommended Posts

Tasks at the start of a new python project
Create a new Python numerical calculation project
[python] [meta] Is the type of python a type?
The Python project template I think of.
Python Basic Course (at the end of 15)
The story of blackjack A processing (python)
Get a datetime instance at any time of the day in Python
Get the caller of a function in Python
Make a copy of the list in Python
A note about the python version of python virtualenv
Send Gmail at the end of the process [Python]
I touched some of the new features of Python 3.8 ①
[Python] A rough understanding of the logging module
Output in the form of a python array
At the time of python update on ubuntu
Remove specific strings at the end of python
A discussion of the strengths and weaknesses of Python
the zen of Python
Start a Django project
Create a Django project and application in a Python virtual environment and start the server
[Python] A program that counts the number of valleys
[GoLang] Set a space at the beginning of the comment
Cut a part of the string using a Python slice
Take a peek at the processing of LightGBM Tuner
A python implementation of the Bayesian linear regression class
Python points from the perspective of a C programmer
A reminder about the implementation of recommendations in Python
[Python] A program that compares the positions of kangaroos.
Python Note: The mystery of assigning a variable to a variable
A story about trying to introduce Linter in the middle of a Python (Flask) project
Towards the retirement of Python2
Python --Quick start of logging
About the ease of Python
About the features of Python
The Power of Pandas: Python
Find out the apparent width of a string in python
A simple Python implementation of the k-nearest neighbor method (k-NN)
I just changed the sample source of Python a little.
How to shuffle a part of a Python list (at random.shuffle)
Get UNIXTIME at the beginning of today with a command
Different from the import type of python. from A import B meaning
I want to start a lot of processes from python
Get the number of specific elements in a python list
[Note] Import of a file in the parent directory in Python
Take a look at the Python built-in exception tree structure
Automatically work on the python project specified at zsh login
Find the eigenvalues of a real symmetric matrix in Python
A Python script that compares the contents of two directories
How to start the PC at a fixed time every morning and execute the python program
How to insert a specific process at the start and end of spider with scrapy
A memorandum of understanding for the Python package management tool ez_setup
A record of patching a python package
A pharmaceutical company researcher summarized the basic description rules of Python
Plot the spread of the new coronavirus
The story of Python and the story of NaN
A good description of Python decorators
How to determine the existence of a selenium element in Python
Let's take a look at the feature map of YOLO v3
[Python] The stumbling block of import
First Python 3 ~ The beginning of repetition ~
[python, ruby] fetch the contents of a web page with selenium-webdriver