You are Here:
Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section



Help with python install

Author (Read 3863 times)

0 Members and 1 Guest are viewing this topic.

Re: Help with python install
« Reply #4 on: April 25, 2017, 08:14:27 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • View Profile
    • Try to Grow

  • Kernel: 4.x
You so funny
 

Re: Help with python install
« Reply #3 on: April 25, 2017, 08:08:01 PM »
 

jeffvanderdoes

  • New to Forums
  • *
  • 9
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile
Second best thing when asking a question is being able to answer your own question...

One should install with --user such as the following...  $ pip install --user holidays

Hope it helps someone else...

Jeff
 

Re: Help with python install
« Reply #2 on: April 25, 2017, 08:01:56 PM »
 

bitsnpcs

  • Platinum Level Poster
  • **********
  • 3237
    Posts
  • Reputation: 305
    • View Profile
    • Try to Grow

  • Kernel: 4.x
Hello jeffvanderdoes,

my ideas or suggestion uninstall and purge Python 3.5 and try again using Python 2 which is preinstalled in LL.
« Last Edit: April 25, 2017, 08:03:47 PM by bitsnpcs »
 

Help with python install
« Reply #1 on: April 25, 2017, 07:57:10 PM »
 

jeffvanderdoes

  • New to Forums
  • *
  • 9
    Posts
  • Reputation: 1
  • Linux Lite Member
    • View Profile
Hi all,

I'm trying to use python 3.5 on LinuxLite 3.4.  I've installed and all went well.  However whe I try to add a python module with pip and pip3 I get an error.  For example

$ pip install holidays
Collecting holidays
Collecting python-dateutil (from holidays)
  Using cached python_dateutil-2.6.0-py2.py3-none-any.whl
Requirement already satisfied: six>=1.5 in /usr/lib/python2.7/dist-packages (from python-dateutil->holidays)
Installing collected packages: python-dateutil, holidays
Exception:
Traceback (most recent call last):
  File "/home/jeff/.local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/jeff/.local/lib/python2.7/site-packages/pip/commands/install.py", line 342, in run
    prefix=options.prefix_path,
  File "/home/jeff/.local/lib/python2.7/site-packages/pip/req/req_set.py", line 784, in install
    **kwargs
  File "/home/jeff/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 851, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/home/jeff/.local/lib/python2.7/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
    isolated=self.isolated,
  File "/home/jeff/.local/lib/python2.7/site-packages/pip/wheel.py", line 345, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/home/jeff/.local/lib/python2.7/site-packages/pip/wheel.py", line 316, in clobber
    ensure_dir(destdir)
  File "/home/jeff/.local/lib/python2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "/usr/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/python_dateutil-2.6.0.dist-info'

Any ideas or suggestions?
Jeff
 

 

-->
X Close Ad

Linux Lite 6.6 FINAL Released - Support for 22 Languages Added - See Release Announcement Section