[07:53:15] <JAK-Zero> hello, I've previously used python rather haphazardly, like installing all packages to the system environment. I want to start following the best practices with python, but I'm having trouble getting pip set up on my linux VM (Xubuntu 18.04)
[07:55:05] <JAK-Zero> these are the python packages that are installed by default https://privatebin.net/?668d1539dbfc70c9#Cii6YPGNciJYLNSSiy97ETFEMYVg6xxKxN5Runp1SSyU
[07:58:42] <JAK-Zero> the main problem I ran into was after installing pip via `sudo apt install python3-pip`, I updated pip from 9.0.1 to 19.2.1, running `pip3` would result in this error `ImportError: cannot import name 'main'`
[07:59:15] <JAK-Zero> oh, I updated pip by using this command `pip3 install -U pip`
[08:01:21] <JAK-Zero> I was still able to use pip with `python3 -m pip`, but the error given when trying to use `pip3` leads me to believe that the pip upgrade broke the original installation through apt
[08:02:42] <JAK-Zero> and breaking a package installed through apt doesn't sound like a 'best practice' kind of thing
[08:05:38] <JAK-Zero> I found out about get-pip.py, but I was worried about using it since python is managed by apt on my VM, which seems as though warning about how it may 'leave your system in an inconsistent state' could apply to my situation
[08:06:27] <JAK-Zero> so what exactly would be the 'proper' way for me to install and use pip on my VM?
[08:17:44] <JAK-Zero> oops, sorry, I had to restart my pc
[09:18:52] <JAK-Zero> so is anybody able to help me with my issue?
[09:39:46] <JAK-Zero> so I found this which seems to line up with my problem, but it doesn't seem to offer any advice as to how exactly I should install pip in the first place https://github.com/pypa/pip/issues/5599
[10:05:58] <snbk97> Doesn't pip comes bundled with Python 3.4 +
[10:06:27] <JAK-Zero> doesn't seem like it does with Xubuntu
[10:07:00] <JAK-Zero> as I mentioned earlier, these are the python packages that were installed by default https://privatebin.net/?668d1539dbfc70c9#Cii6YPGNciJYLNSSiy97ETFEMYVg6xxKxN5Runp1SSyU
[10:07:36] <JAK-Zero> the only package with 'pip' in it was something about a pipeline
[10:10:34] <snbk97> `get-pip.py` script didn't do anything too ?
[10:11:24] <JAK-Zero> I didn't try it, I was worried about the 'leave your system in an inconsistent state' warning since python itself is managed by the OS
[10:11:40] <JAK-Zero> managed by apt, specifically
[10:16:37] <snbk97> I'd give it a try at this point
[10:16:54] <snbk97> I once struggled to keep pip2 and pip3 together
[10:17:30] <snbk97> removed every speck of python packages, broke my WM
[10:19:27] <JAK-Zero> yeah, I just want to try to follow the 'best practices' when it comes to python
[10:23:04] <JAK-Zero> ok, get-pip.py seems to be working
[10:25:45] <JAK-Zero> so I got this warning "WARNING: The script wheel is installed in '/home/jak0723/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location."
[10:32:09] <snbk97> export that path to your shell config
[10:40:28] <JAK-Zero> ok, well thanks for the help anyway
[10:42:09] <snbk97> Also, I think you got the wrong channel, pypa and pypa-dev they are related to python packaging module. For general help #python is more suitable and also more active.
[10:44:07] <JAK-Zero> oh? I already tried asking for help with general python communities and didn't really get anywhere, so I thought I'd try ask the pip people directly
[10:44:23] <JAK-Zero> since the issue was specifically in regards to installing pip
[10:45:18] <snbk97> Oh I see. I joined #pypa today itself.
[10:46:25] <JAK-Zero> oh, well thanks for the help all the same, I'm heading off now
[11:59:22] <JAK-Zero> hey, I just started using pipenv. I have python 3.7 installed on my windows desktop and I have python 3.6 installed on my linux VM. Is it possible to specify in the pipfile something like python_version = ">3.6"?
[12:33:22] <JAK-Zero> and doesn't pipenv install the packages required by dependencies? I'm getting a `ModuleNotFoundError` error because a package required by one of my dependencies wasn't installed
[12:39:17] <tos9> JAK-Zero: Impossible to tell without pasting your error and what you ran, and I don't use pipenv personally so might not be of much help, but pipenv isn't magic, so it's certainly possible to get that if your dependency doesn't declare the module that it needs.
[12:40:47] <JAK-Zero> this is my pipfile https://privatebin.net/?f5400a1121712778#4VKKN32KX7YsmwwBL6huGn5BtVGWP6TLrg48MTuuspsJ
[12:40:54] <JAK-Zero> and this is the error https://privatebin.net/?3c4daf993fc7ca50#2oRRNddvTxSDXo6mX8hf5oS5undh7cgjmryrXaoTB5JP
[12:42:00] <tos9> Tkinter isn't a dependency, it's part of Python's stdlib, but your distro breaks Python :)
[12:42:26] <tos9> Usually distros that do that then go provide a `python3-tkinter` or whatever package to unbreak it.
[12:46:45] <JAK-Zero> ok its working properly now, thanks
[18:28:11] <mp_en_viaje> here's an example of your thing being dropped out of production because of pantsuit idiocy : http://btcbase.org/log/2019-07-28#1925233
[18:28:37] <mp_en_viaje> try to think things through next time ; supporting the femstate and its associated attention whore culture has actual costs : the actual thinking peopel will spit on you.
[20:09:34] <yaroslav17971> hi, is it possible to run warehouse on a different ports? specifically not 80
[21:36:49] <di_codes> yaroslav17971: What are you trying to do? Warehouse doesn't really support any use case other than being <http://pypi.org|pypi.org>