>> And after 15 years of using Python I didn't know it existed until now!
>> I've always used a local directory and added it to PYTHONPATH...
>
>Then maybe you're also not aware of the --user option for
>pip/easy_install. That's how I discovered the user site-packages
>directory.To be honest I've
On 5 February 2014 12:41, Alan Gauld wrote:
>
> And after 15 years of using Python I didn't know it existed until now!
> I've always used a local directory and added it to PYTHONPATH...
Then maybe you're also not aware of the --user option for
pip/easy_install. That's how I discovered the user si
On Wed, Feb 5, 2014 at 6:55 AM, Ian D wrote:
> The network dictates that it is the only way I can really do it as I cannot
> edit any files directly. I have to append the path on the fly
If you can modify your profile, then I'd expect you can permanently
set PYTHONPATH for the current user. setx.
Ian D Wrote in message:
> __ Ok I seem to be having some success with it at the moment after moving
> the location of the module.
That might be because the letter following the backslash is not
currently a valid escape code. You really shouldn't leave half
broken code; it tends to break aga
On 05/02/14 12:02, Tim Golden wrote:
On 05/02/2014 11:58, Oscar Benjamin wrote:
Another option is to place it in site-packages. If you don't want to
use the system site packages you can always use the one in your user
directory. In my case on Ubuntu that's in
~/.local/lib/pythonX.Y/site-packages
On 05/02/2014 11:55, Ian D wrote:
> The network dictates that it is the only way I can really do it as I
> cannot edit any files directly. I have to append the path on the fly
Ok; just wanted to make sure you weren't making life more difficult for
yourself than needs be.
TJG
On 05/02/2014 11:58, Oscar Benjamin wrote:
> Another option is to place it in site-packages. If you don't want to
> use the system site packages you can always use the one in your user
> directory. In my case on Ubuntu that's in
> ~/.local/lib/pythonX.Y/site-packages/
Good point: I always forget t
On 5 February 2014 11:51, Tim Golden wrote:
> On 05/02/2014 11:46, Ian D wrote:
>> Ok even more strangely it is working in the original location.
>>
>> Am now not 100% sure that I have the folder structure correct.
>>
>> I will keep a eye on it.
>
> You might want to consider whether your approach
The network dictates that it is the only way I can really do it as I cannot
edit any files directly. I have to append the path on the fly
> Date: Wed, 5 Feb 2014 11:51:18 +
> From: m...@timgolden.me.uk
> To: tutor@python.org
> Subject: Re: [Tutor] sys.path.append import python3
On 05/02/2014 11:46, Ian D wrote:
> Ok even more strangely it is working in the original location.
>
> Am now not 100% sure that I have the folder structure correct.
>
> I will keep a eye on it.
You might want to consider whether your approach is the best. One
usually appends to sys.path when
Ok even more strangely it is working in the original location.
Am now not 100% sure that I have the folder structure correct.
I will keep a eye on it.
Thanks
To: tutor@python.org
From: da...@davea.name
Date: Wed, 5 Feb 2014 06:32:46 -0500
Subject: Re: [Tutor] sys.path.append import python3
Ok I seem to be having some success with it at the moment after moving the
location of the module.
From: dux...@hotmail.com
To: tutor@python.org
Date: Wed, 5 Feb 2014 11:09:35 +
Subject: [Tutor] sys.path.append import python3 not working
Hi
Seem when I run a module I created with
Ian D Wrote in message:
>
> import sys
> sys.path.append("d:\modules")
Â
> I have tried it with append("d:\\modules") append("d:/\modules")
Â
The first form is not reasonable, you'd need to double the
backslash. But your second try should have worked. Here's what I
would use:
"d:/modules"
Hi
Seem when I run a module I created with
import sys
sys.path.append("d:\modules")
import myMod
it works great in 2.7
but in 3.3 it doesn't
I get an error in 3.3:
import myMod
ImportError: No module named 'myMod'
I have tried it with append("d:\\modules") append("d:/\modules")
A
14 matches
Mail list logo