# python – Install conda package from local file

I am trying to install a python package from a local file in a conda environment, but I’m having some trouble. I can’t share the package, because it’s not yet fully released.

To install this package, I need Cython, PyYAML and a C compiler installed (I’m using gcc). I’ve installed all of them in my conda environment.

To install the package, several modules written in C and Cython need to be compiled. To do this, the package has a Install.py file. So, inside my conda environment, I need to execute python3 Install.py -f for installation.

When I try to run this, unfortunately, I get this error:

File “/home/artur/Documents/package/package-main/installation/Install.py”, line 81, in
Installpackage ( )

File “/home/artur/Documents/package/package-main/installation/Install.py”, line 56, in Installpackage
package.ProcessWithOptions ( options, report )

File “/home/artur/Documents/package/package-main/installation/InstallUtilities.py”, line 506, in ProcessWithOptions
if options.doCLibraries: self.CompileCLibraries ( )

File “/home/artur/Documents/package/package-main/installation/InstallUtilities.py”, line 403, in CompileCLibraries
os.rename ( os.path.join ( buildPath, “lib” + libraryName + _LibraryExtension ), os.path.join ( self.cLibraryPath, “lib” + libraryName + _LibraryExtension ) )

FileNotFoundError: [Errno 2] No such file or directory: ‘build/temp.linux-x86_64-3.10/libdcCore.a’ -> ‘/home/artur/Documents/package/package-main/pCore/extensions/clibrary/libdcCore.a’

I’m new to conda, and I am not sure how to fix this error. I think it could be a problem with the gcc compiler inside conda, not being able to compile the code and create the libdcCore.a file. Can anyone help me out?