Nov-05-2017, 06:12 PM
(Nov-05-2017, 03:15 PM)sparkz_alot Wrote: Simply trying to copy and paste a bunch of files into a directory would create a nightmare situation, the likes of which the world has never seen.Yes,i did write a little about here under The Dark Age and the Broken past.
As i mention Python packaging was messy state between around 2008 to 2013.
So there where a lot of bad homemade solutions.
In 2013 did PyPA(Python Packaging Authority) formed.
They overview and develop tools like pip, setuptools, virtualenv, and wheel.
So they only way forward is to improve on these tool,and educate people how to use theme.
Developers also need a little kick to not forget Windows,Python is a Cross-platform language
So all these tool is now build into Python,also virtual environment in Python 3.6
Many new user do uninstall Python if they get a error and try to reinstall.
Virtual environment is build in(3.6) and this make it easy to get new isolated Python version.
Example with moivepy:
# Make virtual environment C:\1>python -m venv moviepy_env # cd in C:\1>cd moviepy_env # Activate virtual environment C:\1\moviepy_env>C:\1\moviepy_env\Scripts\Activate # Check that pip in environment is used (moviepy_env) C:\1\moviepy_env>pip -V pip 9.0.1 from c:\1\moviepy_env\lib\site-packages (python 3.6) # Install moviepy (moviepy_env) C:\1\moviepy_env>pip install moviepy Collecting moviepy Using cached moviepy-0.2.3.2-py2.py3-none-any.whl Collecting numpy (from moviepy) Using cached numpy-1.13.3-2-cp36-none-win32.whl Collecting tqdm==4.11.2 (from moviepy) Using cached tqdm-4.11.2-py2.py3-none-any.whl Collecting decorator==4.0.11 (from moviepy) Using cached decorator-4.0.11-py2.py3-none-any.whl Collecting imageio==2.1.2 (from moviepy) Collecting pillow (from imageio==2.1.2->moviepy) Using cached Pillow-4.3.0-cp36-cp36m-win32.whl Collecting olefile (from pillow->imageio==2.1.2->moviepy) Installing collected packages: numpy, tqdm, decorator, olefile, pillow, imageio, moviepy Successfully installed decorator-4.0.11 imageio-2.1.2 moviepy-0.2.3.2 numpy-1.13.3 olefile-0.44 pillow-4.3.0 tqdm-4.11.2 # Install SciPy wheel from Gohlke (moviepy_env) C:\1\moviepy_env>pip install scipy-1.0.0-cp36-cp36m-win32.whl Processing c:\1\moviepy_env\scipy-1.0.0-cp36-cp36m-win32.whl Requirement already satisfied: numpy>=1.8.2 in c:\1\moviepy_env\lib\site-packages (from scipy==1.0.0) Installing collected packages: scipy Successfully installed scipy-1.0.0 (moviepy_env) C:\1\moviepy_env>python Python 3.6.2 (v3.6.2:5fd33b5, Jul 8 2017, 04:14:34) [MSC v.1900 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import moviepy >>> moviepy.__version__ '0.2.3.2' >>> exit() (moviepy_env) C:\1\moviepy_env>So now have a totally isolated version,this give several advantages not just if the are problem with Os version.
Also if need to package and share stuff,it's good to have a stuff isolated as a start.