[Tutor] Fwd: Re: Ubuntu install [was: Re: Fwd: Re: program code for Python Programming for the Absolute Beginner, 3rd ed.?]

2017-07-03 Thread Alan Gauld via Tutor
Forwarding to group.

Please always use ReplyAll (or ReplyList) when responding to list emails.





 Forwarded Message 


I have a fresh install of Ubuntu 16.04.2, on which I try to install
Python 3.6.1. I have done this multiple times in the past, but for some
reason I tried it 3 times since yesterday but I kept having the same
error message. Here are the steps that i have taken for my installation:

|$ sudo apt-get update $ sudo apt-get upgrade $ wget
https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz $ tar xvf
Python-3.6.1.tar.xz $ sudo apt-get install build-essential checkinstall
$ sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev
libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev $ cd
Python-3.6.1$ ./configure $ sudo make altinstall|

After the last command the following message will popup at some point:

The directory '/home/mariejosv/.cache/pip/http' or its parent
directory is not owned by the current user and the cache has been
disabled. Please check the permissions and owner of that directory.
If executing pip with sudo, you may want sudo's -H flag.

The directory '/home/mariejosv/.cache/pip' or its parent directory
is not owned by the current user and caching wheels has been
disabled. check the permissions and owner of that directory. If
executing pip with sudo, you may want sudo's -H flag.

How can I fix this?



Sent from my T-Mobile 4G LTE Device


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Fwd: Re: program code for Python Programming for the Absolute Beginner, 3rd ed.?

2017-07-03 Thread Cameron Simpson

On 03Jul2017 09:13, Alan Gauld  wrote:
[...]

Sorry,
I still have no idea what you are trying to do and what you want help with?
 Forwarded Message 
Alan,
my bad, here is the error message.
*The directory '/home/mariejosv/.cache/pip/http' or its parent directory
is not owned by the current user and the cache has been disabled. Please
check the permissions and owner of that directory. If executing pip with
sudo, you may want sudo's -H flag.


I would guess that the poster has done some pip installs as root, but with 
$HOME still as their personal home directory, and is now doing some pip install 
stuff as themselves.


My advice would be to simply remove the .cache/pip directory.

Then in future, do your pip work from a proper login shell as whichever user.  
So either as yourself, or if you become root, do an "su -" to get a root login 
shell before proceeding.


Personally my practice is to mostly use pip only with virtualenvs, as myself.

Using pip as root tends to conflict with Python packages supplied by the OS 
vendor/supplier; better to stay out of the way of that and work as oneself on 
data the OS vendor doesn't want to own.


Cheers,
Cameron Simpson 
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


[Tutor] Ubuntu install [was: Re: Fwd: Re: program code for Python Programming for the Absolute Beginner, 3rd ed.?]

2017-07-03 Thread Alan Gauld via Tutor
On 03/07/17 09:13, Alan Gauld via Tutor wrote:
> forwarding to list.
> 
> Sorry,
> I still have no idea what you are trying to do and what you want help with?

OK, I just realized that you replied to the wrong post
and this is actually about the thread on installing 3.6
on Ubuntu.

> 
>  Forwarded Message 
> 
> Alan,
> my bad, here is the error message.
> *The directory '/home/mariejosv/.cache/pip/http' or its parent directory
> is not owned by the current user and the cache has been disabled. Please
> check the permissions and owner of that directory. If executing pip with
> sudo, you may want sudo's -H flag.
> The directory '/home/mariejosv/.cache/pip' or its parent directory is
> not owned by the current user and caching wheels has been disabled.
> check the permissions and owner of that directory. If executing pip with
> sudo, you may want sudo's -H flag. *
> 
> 

-- 
Alan G
Author of the Learn to Program web site
http://www.alan-g.me.uk/
http://www.amazon.com/author/alan_gauld
Follow my photo-blog on Flickr at:
http://www.flickr.com/photos/alangauldphotos


___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python3.6.1 on Ubuntu 16.04.2

2017-07-03 Thread Mike Lisanke
looks like python3.6 isn't in the stable repo for arm64 ubuntu 16.04... so
articles exist for building it. None appear to mention .configure
-- used and there's a lot of options... if anyone has a reference
to what to configure, let me know.

On Sun, Jul 2, 2017 at 7:46 PM, Mats Wichmann  wrote:

> what was the error? nothing came through
>
> On July 2, 2017 9:06:07 AM MDT, Joseph VOGTEMBING via Tutor <
> tutor@python.org> wrote:
> >I have a fresh install of Ubuntu 16.04.2, on which I try to install
> >Python3.6.1, and I have done this multiple times in the past, but for
> >some reason I tried it 3 times since yesterday but I kept having the
> >same error message. here are the steps that i have taken for my
> >installation.
> >mariejosv@ubuntu:~$  sudo apt-get update
> >mariejosv@ubuntu:~$  sudo apt-get upgrade
> >mariejosv@ubuntu:~$ wget
> >https://www.python.org/ftp/python/3.6.1/Python-3.6.1.tar.xz
> >
> >
> >mariejosv@ubuntu:~$ tar xvf Python-3.6.1.tar.xz
> >
> >mariejosv@ubuntu:~$ sudo apt-get installbuild-essential checkinstall
> >
> >mariejosv@ubuntu:~$ sudo apt-get installlibreadline-gplv2-dev
> >libncursesw5-dev libssl-dev libsqlite3-dev tk-devlibgdbm-dev libc6-dev
> >libbz2-dev
> >
> >mariejosv@ubuntu:~$ cd Python-3.6.1
> >
> >mariejosv@ubuntu:~/Python-3.6.1$ ./configure
> >mariejosv@ubuntu:~/Python-3.6.1$sudo make altinstall  # after this
> >line, the following message will popup at some point
> >
> >
> >
> >
> >Please help.
> >Thanks
> >Joseph
> >___
> >Tutor maillist  -  Tutor@python.org
> >To unsubscribe or change subscription options:
> >https://mail.python.org/mailman/listinfo/tutor
>
> --
> Sent from my Android device with K-9 Mail. Please excuse my brevity.
> ___
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>



-- 
Best regards,  Mike
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor


Re: [Tutor] Installing Python3.6.1 on Ubuntu 16.04.2

2017-07-03 Thread Joseph VOGTEMBING via Tutor
HEY GUYS,SORRY, BUT HERE IS THE ERROR MESSAGE."The directory 
'/home/mariejosv/.cache/pip/http' or its parent directory is not owned by the 
current user and the cache has been disabled. Please check the permissions and 
owner of that directory. If executing pip with sudo, you may want sudo's -H 
flag.
The directory '/home/mariejosv/.cache/pip' or its parent directory is not owned 
by the current user and caching wheels has been disabled. check the permissions 
and owner of that directory. If executing pip with sudo, you may want sudo's -H 
flag." 


On Sunday, July 2, 2017, 8:55:05 PM EDT, Mike Lisanke  
wrote:

looks like python3.6 isn't in the stable repo for arm64 ubuntu 16.04... so 
articles exist for building it. None appear to mention .configure -- 
used and there's a lot of options... if anyone has a reference to what to 
configure, let me know. 
On Sun, Jul 2, 2017 at 7:46 PM, Mats Wichmann  wrote:

what was the error? nothing came through

On July 2, 2017 9:06:07 AM MDT, Joseph VOGTEMBING via Tutor  
wrote:
>I have a fresh install of Ubuntu 16.04.2, on which I try to install
>Python3.6.1, and I have done this multiple times in the past, but for
>some reason I tried it 3 times since yesterday but I kept having the
>same error message. here are the steps that i have taken for my
>installation.
>mariejosv@ubuntu:~$  sudo apt-get update
>mariejosv@ubuntu:~$  sudo apt-get upgrade
>mariejosv@ubuntu:~$ wget
>https://www.python.org/ftp/ python/3.6.1/Python-3.6.1.tar. xz
>
>
>mariejosv@ubuntu:~$ tar xvf Python-3.6.1.tar.xz
>
>mariejosv@ubuntu:~$ sudo apt-get installbuild-essential checkinstall   
>
>mariejosv@ubuntu:~$ sudo apt-get installlibreadline-gplv2-dev
>libncursesw5-dev libssl-dev libsqlite3-dev tk-devlibgdbm-dev libc6-dev
>libbz2-dev   
>
>mariejosv@ubuntu:~$ cd Python-3.6.1
>
>mariejosv@ubuntu:~/Python-3. 6.1$ ./configure  
>mariejosv@ubuntu:~/Python-3. 6.1$sudo make altinstall  # after this
>line, the following message will popup at some point
>The directory '/home/mariejosv/.cache/pip/http' or its parent directory is not 
>owned by the current user and the cache has been disabled. Please check the 
>permissions and owner of that directory. If executing pip with sudo, you may 
>want sudo's -H flag.
The directory '/home/mariejosv/.cache/pip' or its parent directory is not owned 
by the current user and caching wheels has been disabled. check the permissions 
and owner of that directory. If executing pip with sudo, you may want sudo's -H 
flag.
 >
>
>
>Please help.
>Thanks
>Joseph
>_ __
>Tutor maillist  -  Tutor@python.org
>To unsubscribe or change subscription options:
>https://mail.python.org/ mailman/listinfo/tutor

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
__ _
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/ mailman/listinfo/tutor




-- 
Best regards,  Mike
___
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor