How to deactivate an egg?

I installed cx_Oracle (repeatedly) and I just can't get it to work on my Intel Mac. How to deactivate / delete it?

+3
source share
1 answer

You just delete the file .egg

In OS X they are installed in /Library/Python/2.5/site-packages/- in this folder you should find a file with a name cx_Oracle.eggor similar. You can simply delete this file and it will disappear.

One way to search for a file is if you can import the module by simply displaying the repr()module:

>>> import urllib
>>> urllib
<module 'urllib' from '/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib.pyc'>
>>> import BeautifulSoup
>>> BeautifulSoup
<module 'BeautifulSoup' from '/Library/Python/2.5/site-packages/BeautifulSoup-3.0.6-py2.5.egg/BeautifulSoup.py'>

If import fails, the location of the module should also be displayed in the trace.

, - , . OS X /usr/local/bin/ - , cx_Oracle grep:

cd /usr/local/bin/
grep EASY-INSTALL * | grep cx_Oracle

..

cd /usr/local/bin/
grep cx_Oracle *
+3

Source: https://habr.com/ru/post/1709317/


All Articles