-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow user to define temp directory location #4462
Comments
AIUI pip should respect the standard |
Yes! I didn't know the existence of |
Excellent. There's nothing specific in the pip docs about this, as it's a standard OS facility, but that doesn't help much if you don't know about it :-) Glad you got it working. |
For anyone who Googled there way here, @kracekumar is right. In my case, I was using some Rackspace provided VMs, and /tmp had "noexec" and pip uses /tmp for anything. Luckily, using |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description:
I have two partitions in the Linux box. One with 20 GB (partition 1) where OS runs and data are stored in other partition with 250+ GB space (partition 2).
The
partition 1
always has less than 1 GB of space after prolonged use of the machine and so far no other program has complained about the lack of space.When I run
pip
I specify an option forcache-dir
in the partition 2. Unfortunately,pip
createstemp
directory in/tmp
directory. This creates problem while installing large set of packages liketensorflow
. Specifyingtarget
option isn't helpful. Here is the code which createstemp directory
.One option is to use dir option while creating the directory.
tempfile.mkdtemp( dir=options.target_dir)
?tmp directory
from user?What I've run:
The text was updated successfully, but these errors were encountered: