Python Forum
Attempt to build python 3.7.0 on OpenSuse Leap 15
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Attempt to build python 3.7.0 on OpenSuse Leap 15
#11
I don't know how that switched to 3.6.
I followed this: https://gist.github.com/antivanov/01ed4e...8b5a0a4ac7
(making modifications for 3.7)

will try again with your suggestions above.
Reply
#12
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:
Output:
sudo zypper install -t pattern devel_C_C++ sudo zypper in libgcrypt-devel glib2-devel autoconf automake libtool sudo zypper install libbz2-devel libssl45 libreadline7 libsqlite3-0 tk-devel git clone https://github.com/yyuu/pyenv-virtualenv.git ~/.pyenv/plugins/pyenv-virtualenv optional sudo zypper install libpng16-compat-devel, libpng16-devel
Now here's what I have for pip and python3:
Output:
Larz60p@linux-nnem:/run/media/Larz60p/Data-4TB/python/a-d/d/Django/StartupBlog> pip -V pip 10.0.1 from /home/Larz60p/.pyenv/versions/3.7.0/lib/python3.7/site-packages/pip (python 3.7) Larz60p@linux-nnem:/run/media/Larz60p/Data-4TB/python/a-d/d/Django/StartupBlog> python3 -V Python 3.7.0 Larz60p@linux-nnem:/run/media/Larz60p/Data-4TB/python/a-d/d/Django/StartupBlog>
Reply
#13
So have you installed pyenv correct and it work as it should?
You know that python3 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 notebook
There is a option to use virtual environment pyenv virtualenv,but i use venv(what python has build in) or pipenev.
Reply
#14
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.
Reply
#15
(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?

I see your note:
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...
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  attempt to split values from within a dataframe column mbrown009 8 2,224 Apr-10-2023, 02:06 AM
Last Post: mbrown009

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020