What is pydistutils cfg

0 votes
I work on two servers, and on one server .pydistutils.cfg looks like:

install_scripts=~/opt_old/bin
install_data=~/opt_old/share
install_lib=~/usr/lib/python2.6/site-packages
I think, this creates problems with using pip and linking libraries on local versions of python.

On the second server, the file is non existent, and I don't have any issues.

Why do we need this file and why is PYTHONPATH not sufficient?

I installed a local version of Python and renamed the file .pydistutils.cfg. Hence, it seems that the file is not that important.
Jan 21, 2019 in Python by ana1504.k
• 7,910 points
1,683 views

1 answer to this question.

0 votes
I don't immediately see a reason why an average developer should use it, it seems a bit kludgy to me, perhaps it makes sense if you make your own distro, target docker or similar distribution system or target an embedded system?

Here's a super-simple usage example:

https://github.com/amolenaar/gaphor/wiki/Custom-Python-Installation-Location
answered Jan 21, 2019 by SDeb
• 13,300 points

Related Questions In Python

+2 votes
3 answers

what is the practical use of polymorphism in Python?

Polymorphism is the ability to present the ...READ MORE

answered Mar 31, 2018 in Python by anto.trigg4
• 3,440 points
4,287 views
+4 votes
7 answers
0 votes
3 answers

What is python? Where it is used?

 Python is develop by Guido Van Rossum ...READ MORE

answered Mar 18, 2019 in Python by rajesh kumar
740 views
+1 vote
7 answers
0 votes
2 answers
+1 vote
2 answers

how can i count the items in a list?

Syntax :            list. count(value) Code: colors = ['red', 'green', ...READ MORE

answered Jul 7, 2019 in Python by Neha
• 330 points

edited Jul 8, 2019 by Kalgi 4,058 views
0 votes
1 answer
0 votes
1 answer

What is a “method” in Python?

It's a function which is a member ...READ MORE

answered Oct 23, 2018 in Python by SDeb
• 13,300 points
504 views
0 votes
1 answer

What is GIL in CPython?

Python's GIL is intended to serialize access ...READ MORE

answered Nov 9, 2018 in Python by SDeb
• 13,300 points
653 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP