[Distutils] Problem: couldn't find a setup script in C:\Users\[user]\[package]
Lennart Regebro
regebro at gmail.com
Mon Sep 30 13:38:50 CEST 2013
Indeed, if there is a folder called "foobar" in your current
directory, and you run "easy_install foobar", easy_install will assume
you are trying to install the package in the folder "foobar", which
fails if it is not a package. One solution to that is to change your
current directory to a directory that does not include the folder
"foobar".
//Lennart
On Mon, Sep 30, 2013 at 11:19 AM, Martin Fiers
<martin.fiers at intec.ugent.be> wrote:
> Hello! When a folder inside a user's home directory has the same name as a
> package, then installation fails.
>
> What steps will reproduce the problem?
> 1. On a Windows system, start with a vanilla python, with pip not installed
> 2. Create the folder pip in C:\Users\[username] (so now there's a folder
> C:\Users\[username]\pip)
> 3. run easy_install pip
>
> (the error is reproduced with any other package as well, as long as there's
> a home folder).
>
> What is the expected output? What do you see instead?
> pip is installed
> Instead, this gives the error:
> Couldn't find a setup script in /home/[username]/pip
>
> What version of the product are you using? On what operating system?
> Windows 7, Python 2.7.5, with ez_setup.py called so setuptools is installed.
>
> Please provide any additional information below.
> This is rather annoying, since our software creates a folder in the user's
> home directory.
> But also the pip packages creates a log folder. So when I accidentially
> remove pip and want to
> re-install, easy_install does not work.
>
> Thanks very much,
> Martin
>
>
>
> _______________________________________________
> Distutils-SIG maillist - Distutils-SIG at python.org
> https://mail.python.org/mailman/listinfo/distutils-sig
>
More information about the Distutils-SIG
mailing list