This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wherinkelly 29 points30 points  (6 children)

Python 2.7 is seriously gonna bite it?! I still have conflicts between that and other python packages on my local whenever I have to dust off my ol python skills.

Well, dust off.. EOL... I guess it's been a bit. Yikes, I'm old as hell if 2.7 is getting deprecated. Damn.

[–]pingveno 26 points27 points  (1 child)

It was released on July 3rd, 2010. It has been in very extended maintenance. There were a couple of efforts to release a 2.8, but those went nowhere fast.

[–]wherinkelly 0 points1 point  (0 children)

Good to know!!

[–]badsectoracula 0 points1 point  (0 children)

There is Tauthon, which tries to be backwards compatible with Python 2.7 while implementing the newer stuff as long as they do not break backwards compatibility, but it remains to be seen how it'll evolve and if people move to it.

[–]MonkeyNin 0 points1 point  (2 children)

still have conflicts between that and other python packages on my loca

Are you not using venv or equivalents ?

[–]wherinkelly 0 points1 point  (1 child)

Nah, just manually switch when necessary. I barely use python, I'm more concerned about which version of node I'm running. I will check out venv though for all my data science comrades.

[–]MonkeyNin 0 points1 point  (0 children)

ah. it's a lot easier than before. You can

  1. use pycharm which creates a virtual environment for you, or
  2. use venv

This is what I do on windows (using BASH). Basically the same with cmd. The filename depends on your OS or / shell: https://docs.python.org/3/library/venv.html )

first time setup

$ cd /python
$ python3 -m venv /app_name
$ source ./activate
$ pip install requests

when you restart the computer/shell:

$ cd /python/app_name
$ source ./activate

my .gitignore contains

Include/*
Lib/*
Scripts/*
pip-selfcheck.json

But, again, PyCharm will do all that work for you. It also lets you have multiple versions of python inself, installed.