Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why so complicated?
#5
(Jan-27-2018, 10:26 PM)wavic Wrote: I have never used Fedora. I have installed Mint, Ubuntu MATE, and Arch. As far I can remember I had not any problems to install something with pip. Almost. Some modules require installing some C libraries but that's all. OpenCV for example.

I can't tell anything about Windows and Python because I don't use that system.

Can you be more specific which module you can't install and what is happening? You mentioned Pillow. What exactly is the issue?
Your post is quite common.
Well, here's the thing: today I decided to do a full reinstall of Fedora in order to redeem sins committed at an earlier stage in life (the root install, which is ill advised), so I cannot give an exact account of all the errors that I've received. However one culprit seems to be responsible for most of the errors, namely error no. 13, which as far as I can tell has to do with permissions.

When I installed python on the win7 system, I had to check off a checkbox that had to do with python/cmd prompt communication, and thusly it works on the win system.
In Linux the installation process is somewhat different, and I suspect that there's some miscommunication between the python folder and the pip installer, however I couldn't say for sure.

Basically I'm trying to follow this tutorial as it seemed both interesting, well explained and within my capacity; I can wrap my head around the code without going cross eyed :) I realise that I have to alter a lot of the code as the article in question is a bit old, but I assumed that I could work around it, learning in the process.

The procedure is as follows: I work out what the relevant, updated modulename is and attempt 1) pip install <module name>, then proceed to add --user to the line and try again. In both cases the module downloads, tries for an installation and then returns the errno 13. Sudo pip install, however, does the trick without producing red text.

After the aforementioned reinstallation none of the modules (numPy, Pillow, PyWin) wants to play ball. the interpreter tells me that they're not recognized even though the sudo install method appeared to complete without incident. This is strange, because I've had numPy up and running before, and I'm fairly certain that I'm installing it using the same procedure as before.

Did I manage to answer your question? I'm a bit dazed by now; it's been about eight to ten hours mucking about with the machine today.

(Jan-27-2018, 10:52 PM)snippsat Wrote: It's can be difficult to start,there is a lot of stuff that's is unfamiliar.
Here my tutorial of basic usage of Python 3 on Windows and Linux.
Windows Part-1, Part-2
Linux Part-1

(Jan-27-2018, 10:06 PM)vulpesVelox Wrote: I've learned that I'm not to sudo pip install on the Fedora platform as it will create clutter
Advice follow tutorial in link about pyenv,for Fedora
Example:
mint@mint ~ $ pyenv install 3.6.2
Downloading Python-3.6.2.tar.xz...
-> https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tar.xz
Installing Python-3.6.2...
Installed Python-3.6.2 to /home/mint/.pyenv/versions/3.6.2
  
# Make python and pip default to 3.6.2 or what version want to use
mint@mint ~ $ pyenv global 3.6.2
 
mint@mint ~ $ python
Python 3.6.2 (default, Jul 20 2017, 14:21:59) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> exit()
Now will pip install something always work and installing to 3.6.2,no need for sudo.
Switching back to OS default is easy to,as pyenv is safe to use it do not mess with system Python.
mint@mint ~ $ pyenv local system
mint@mint ~ $ python
Python 2.7.12 (default, Nov 19 2016, 06:48:10) 
[GCC 5.4.0 20160609] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> 
mint@mint ~ $ python3
Python 3.5.2 (default, Nov 17 2016, 17:05:23) 
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>

Thank you kindly; I'll have a look in the morning when I'm done hibernating ;)

(Jan-27-2018, 11:33 PM)Gribouillis Wrote:
(Jan-27-2018, 10:06 PM)vulpesVelox Wrote: What do you think?
I think instead of quitting Python, quit Fedora. I'm using Kubuntu and pip install --user works very well.
I actually found an Ubuntu distro earlier on, wondering if I might have more luck with that. I will have a go at it tomorrow, just to see.
Would you recommend Kubuntu over Ubuntu?

This is the 2nd time around you've tried to help me out in a rather short time span. Pretty soon I'll have to buy you a pizza, I think - cheers ;)
Reply


Messages In This Thread
Why so complicated? - by vulpesVelox - Jan-27-2018, 10:06 PM
RE: Why so complicated? - by wavic - Jan-27-2018, 10:26 PM
RE: Why so complicated? - by vulpesVelox - Jan-28-2018, 12:14 AM
RE: Why so complicated? - by snippsat - Jan-27-2018, 10:52 PM
RE: Why so complicated? - by Gribouillis - Jan-27-2018, 11:33 PM
RE: Why so complicated? - by league55 - Jan-28-2018, 01:11 AM
RE: Why so complicated? - by wavic - Jan-28-2018, 01:37 AM
RE: Why so complicated? - by vulpesVelox - Jan-28-2018, 10:59 AM
RE: Why so complicated? - by league55 - Jan-28-2018, 11:14 AM
RE: Why so complicated? - by Gribouillis - Jan-28-2018, 05:37 AM
RE: Why so complicated? - by league55 - Jan-28-2018, 08:28 AM
RE: Why so complicated? - by Gribouillis - Jan-28-2018, 08:44 AM
RE: Why so complicated? - by snippsat - Jan-28-2018, 01:35 PM
RE: Why so complicated? - by vulpesVelox - Jan-28-2018, 07:15 PM
RE: Why so complicated? - by wavic - Jan-28-2018, 09:21 PM
RE: Why so complicated? - by vulpesVelox - Jan-30-2018, 01:51 PM
RE: Why so complicated? - by snippsat - Jan-30-2018, 06:52 PM
RE: Why so complicated? - by nelsonkane - Jan-31-2018, 02:40 AM
RE: Why so complicated? - by vulpesVelox - Jan-31-2018, 11:16 AM

Forum Jump:

User Panel Messages

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