Jul-25-2018, 04:59 PM
(This post was last modified: Jul-25-2018, 05:20 PM by saisankalpj.)
(Jul-25-2018, 04:41 PM)snippsat Wrote: It'sCould you please tell me the sequence of steps i should follow. I m bit confused.my version of python is 2.7.15 and how will i run venv and where should i use setup.py filepip install -r requirements.txt
. There may bewheel
file that (setup.py can makes). Then ispip install wheel_name.whl
. wheel contains all,and install needed modules/packages. This should be done in a virtual environment,to avoid conflict with what you have installed before. venv is build into Python from 3.6 -->. Quick demo for Windows, works the same on Linux there can justsource bin/activate
to activate.# Make enviroment C:\code λ python -m venv my_env # Cd in C:\code λ cd my_env # Activate C:\code\my_env λ C:\code\my_env\Scripts\Activate # Check that pip point to enviroment (my_env) C:\code\my_env λ pip -V pip 10.0.1 from c:\code\my_env\lib\site-packages\pip (python 3.7) # Install requirements.txt (my_env) C:\code\my_env λ pip install requirements.txt Collecting requirements.txt Could not find a version that satisfies the requirement requirements.txt (from versions: ) No matching distribution found for requirements.txt You are using pip version 10.0.1, however version 18.0 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. (my_env) C:\code\my_env λ pip install -r requirements.txt Downloading https://files.pythonhosted.org/packages/eb/01/c1f58987b777d6c4ec535b4e004a4a07bfc9db06f0c7533367ca6da8f2a6/certifi-2017.4.17-py2.py3-none-any.whl (375kB) 100% |████████████████████████████████| 378kB 1.4MB/s .......