Import Python modules without installing - Sybase ASE

I need to use the Sybase Python module, but our SA will not be installed because it is not in the repo. I downloaded it and placed it on the box and would just like to β€œimport” or β€œenable” the module without first installing it. - Is it possible? In appearance (Sybase ASE) some type of compilation is required before use. Is it possible for this type of work?

+3
source share
3 answers

If you can force Sybase to use a virtual environment (I don’t know anything about Sybase, sorry), you can probably install the module using virtualenv, which usually does not require root or SA access.

+1

sybase, , , Google , easy_install.

, (- -?), . , , python Sybase , : 1) SA 2) - .

python script, d/l, SA, "" -, apt-.

, .

+1

, , :

python setup.py build_ext

should create a shared sybasect object. Copying this file and the Sybase.py somwhere file to PYTHONPATH may just do it for you.

0
source

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


All Articles