pyenv - github way - it works for me.
-- thanks.
On Wednesday, August 16, 2017 at 2:18:08 AM UTC-7, Avraham Serour wrote:
On Wednesday, August 16, 2017 at 2:18:08 AM UTC-7, Avraham Serour wrote:
on the same link it is mentioned "To not touch the system Python (generally a bad idea..."it is suggested to use pyenv, you may use instead pythonzOn Wed, Aug 16, 2017 at 3:56 AM, Seo Brain <seo...@gmail.com> wrote:--Hi AvrahamThanks.I did install the python V3.6 on my dev-server ubuntu 14.04by using this//also map 3.6.2 to python3 folder by this waysudo rm python3sudo ln -s python3.5 python3python -V shows v3.6.2sudo apt-get install python3.6-venv -- able to install virtualenvand python -V is v2.7 and python3 -V is v3.6.2which python3 -- (/usr/bin/python3)which pip3 (/usr/local/bin/pip3) or pip (/usr/local/bin/pip) display the pathand issue is pip -V or pip3 -V , error display--------Traceback (most recent call last):File "/usr/local/bin/pip3", line 7, in <module>from pip import mainFile "/usr/lib/python3/dist-packages/pip/__init__.py", line 59, in <module> from pip.log import loggerFile "/usr/lib/python3/dist-packages/pip/log.py", line 9, in <module> import colorama, pkg_resourcesFile "<frozen importlib._bootstrap>", line 961, in _find_and_loadFile "<frozen importlib._bootstrap>", line 950, in _find_and_load_unlockedFile "<frozen importlib._bootstrap>", line 646, in _load_unlockedFile "<frozen importlib._bootstrap>", line 616, in _load_backward_compatibleFile "/usr/share/python-wheels/setuptools-3.3-py2.py3-none- any.whl/pkg_resources.py", line 1479, in <module> register_loader_type(importlib_bootstrap. SourceFileLoader, DefaultProvider) AttributeError: module 'importlib._bootstrap' has no attribute 'SourceFileLoader'-----------and i tried to upgrade the pip3 and still the same error.Please help to figure it out.ThanksRoss
On Sunday, August 13, 2017 at 8:11:57 AM UTC-7, Avraham Serour wrote:I suggest using 3.6, which is the current stable releaseif your machine or the server doesn't have this version installed you may compile it yourself and create the virtualenv for the project from thereThere are some projects that help you with that, I like pythonz https://github.com/saghul/pythonz On Sun, Aug 13, 2017 at 9:33 AM, Seo Brain <seo...@gmail.com> wrote:Hi, the question is about which python version suppose to use. On web server is ubuntu 14.4 - python v3.4 (i assume) with virtualenv, my local is python v3.5 or may be using v3.4 if i have to keep the same version on web server ? v3.4 seems has issue to install on one of my windows 7, but no issue on mac. or may be i suppose to use virtual-box to keep the environment same everywhere dev and production server ?--thanks in advance. Ross
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/7937063c- .e3cb-44b7-b524-097b82d05d87% 40googlegroups.com
For more options, visit https://groups.google.com/d/optout .
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com .
To post to this group, send email to django...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users .
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/82d094db- .0338-495b-963e-c912cf068171% 40googlegroups.com
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/97ca8638-759c-4845-878d-a85049c01d02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment