![]() |
Attempt to build python 3.7.0 on OpenSuse Leap 15 - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Data Science (https://python-forum.io/forum-44.html) +--- Thread: Attempt to build python 3.7.0 on OpenSuse Leap 15 (/thread-11250.html) Pages:
1
2
|
RE: Attempt to build python 3.7.0 on OpenSuse Leap 15 - Larz60+ - Jul-01-2018 I don't know how that switched to 3.6. I followed this: https://gist.github.com/antivanov/01ed4eac2d7486a170be598b5a0a4ac7 (making modifications for 3.7) will try again with your suggestions above. RE: Attempt to build python 3.7.0 on OpenSuse Leap 15 - Larz60+ - Jul-01-2018 Ok, I had to change a few things to get it all to work, but I think I'm OK now: here's what I used on OpenSuse Leap 15: Now here's what I have for pip and python3:
RE: Attempt to build python 3.7.0 on OpenSuse Leap 15 - snippsat - Jul-01-2018 So have you installed pyenv correct and it work as it should? You know that python 3 is not needed when if you set global pyenv global 3.7.0 mint@mint ~ $ pyenv global 3.7.0 mint@mint ~ $ python -V Python 3.7.0 mint@mint ~ $ pip -V pip 10.0.1 from /home/mint/.pyenv/versions/3.7.0/lib/python3.7/site-packages/pip (python 3.7)Can take a litt more about usage,the point is that is shall be easy and safe to switch. # Look at what's available mint@mint ~ $ pyenv install --list Available versions: .... 3.6.6 3.6.6rc1 3.7.0 3.7-dev 3.8-dev # install 3.8-dev mint@mint ~ $ pyenv install 3.8-dev Cloning https://github.com/python/cpython... Installing Python-3.8-dev... Installed Python-3.8-dev to /home/mint/.pyenv/versions/3.8-dev # Set python and pip to point to 3.8 mint@mint ~ $ pyenv global 3.8-dev mint@mint ~ $ python -V Python 3.8.0a0 mint@mint ~ $ pip -V pip 10.0.1 from /home/mint/.pyenv/versions/3.8-dev/lib/python3.8/site-packages/pip (python 3.8)Just want to test miniconda in shell session. mint@mint ~ $ pyenv shell miniconda3-4.3.11 (miniconda3-4.3.11) mint@mint ~ $ conda -V conda 4.3.21 (miniconda3-4.3.11) mint@mint ~ $ python -V Python 3.6.0 :: Continuum Analytics, Inc. (miniconda3-4.3.11) mint@mint ~ $ jupyter notebookThere is a option to use virtual environment pyenv virtualenv ,but i use venv(what python has build in) or pipenev.
RE: Attempt to build python 3.7.0 on OpenSuse Leap 15 - Larz60+ - Jul-02-2018 It was a bit confusing at first, only because of the unfamiliarity, but I can see the benefit, and after this exercise it makes more sense. I already know that I like the way it operates. Now, just to be sure, when I create a new project, what command should i use to set up the virtual environment? I see your note: Quote:There is a option to use virtual environment pyenv virtualenv,but i use venv(what python has build in) or pipenev. RE: Attempt to build python 3.7.0 on OpenSuse Leap 15 - snippsat - Jul-02-2018 (Jul-02-2018, 01:32 AM)Larz60+ Wrote: Now, just to be sure, when I create a new project, what command should i use to set up the virtual environment?It's up to you,i use venv sometime because it work the same Windows/Linux/Mac as it's a build in part of Python. pipenv for better control over dependencies and ease of use. Like install movipy,all is done with one line and you get a nice dependencies graph. # Make virtual environment and install all in one line pipenv install moviepy λ pipenv graph moviepy==0.2.3.5 - decorator [required: >=4.0.2,<5.0, installed: 4.3.0] - imageio [required: >=2.1.2,<3.0, installed: 2.3.0] - numpy [required: Any, installed: 1.14.5] - pillow [required: Any, installed: 5.2.0] - numpy [required: Any, installed: 1.14.5] - tqdm [required: >=4.11.2,<5.0, installed: 4.23.4]moviepy need imageio and imageio need numpy and pillow ect... |