Local Python Repository Packet Installation The Next CEO of Stack OverflowUnmet dependenciesInstallation Error Message Re: Samba4Python not recognizing LD_LIBRARY_PATH?lxml with custom install location for libxml2/libxslt doesn't find correct locationCapstone for Python not workingSetting different path for installation in python packagingupdating rst2pdf leads to pip uninstallCross-compiling Pythoncertbot and awscli require different versions of botocoreLocal Repo Update
Why do professional authors make "consistency" mistakes? And how to avoid them?
Why were Madagascar and New Zealand discovered so late?
Can I equip Skullclamp on a creature I am sacrificing?
Was a professor correct to chastise me for writing "Prof. X" rather than "Professor X"?
Implement the Thanos sorting algorithm
Return the Closest Prime Number
The King's new dress
How do we know the LHC results are robust?
Is a stroke of luck acceptable after a series of unfavorable events?
Only print output after finding pattern
Trouble understanding the speech of overseas colleagues
How do I get the green key off the shelf in the Dobby level of Lego Harry Potter 2?
Increase performance creating Mandelbrot set in python
Why doesn't a table tennis ball float on the surface? How do we calculate buoyancy here?
Anatomically Correct Mesopelagic Aves
Is HostGator storing my password in plaintext?
Why is there a PLL in CPU?
How should I support this large drywall patch?
Grabbing quick drinks
Why does standard notation not preserve intervals (visually)
Why did we only see the N-1 starfighters in one film?
What does "Its cash flow is deeply negative" mean?
How long to clear the 'suck zone' of a turbofan after start is initiated?
Why didn't Khan get resurrected in the Genesis Explosion?
Local Python Repository Packet Installation
The Next CEO of Stack OverflowUnmet dependenciesInstallation Error Message Re: Samba4Python not recognizing LD_LIBRARY_PATH?lxml with custom install location for libxml2/libxslt doesn't find correct locationCapstone for Python not workingSetting different path for installation in python packagingupdating rst2pdf leads to pip uninstallCross-compiling Pythoncertbot and awscli require different versions of botocoreLocal Repo Update
I have a rhel server which I use as yum repository for my other servers. Now I need it to serve python packages as well. I found an anaconda repository to download packages: https://repo.continuum.io/pkgs/main/linux-64/ I download all the packages with:
wget -A bz2 https://repo.continuum.io/pkgs/main/linux-64/ -P /path_for_packages
I use -A bz2 because all the packages are tar.bz2 formatted.
The thing is, other servers can't download/install the packages I downloaded to the repository server.
I try to download the packages via "wget" command and decompress the packages via "tar -xjvf" but after that, I couldn't find any installation file to install that package.
Than, I found the proper way to install python packages is "pip install" command.
However, when I try to use "pip install", I get the below error.
pip install wget-1.19.5-h20c2e04_0.tar.bz2 -f http://<IP_Address>/path_to_packages/
Requirement 'unzip-6.0-h611a1e1_0.tar.bz2' looks like a filename, but the file does not exist
Processing ./unzip-6.0-h611a1e1_0.tar.bz2
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 307, in run
requirement_set.prepare_files(finder)
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 370, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 587, in _prepare_file
session=self.session, hashes=hashes)
File "/usr/lib/python2.7/site-packages/pip/download.py", line 798, in unpack_url
unpack_file_url(link, location, download_dir, hashes=hashes)
File "/usr/lib/python2.7/site-packages/pip/download.py", line 705, in unpack_file_url
unpack_file(from_path, location, content_type, link)
File "/usr/lib/python2.7/site-packages/pip/utils/__init__.py", line 602, in unpack_file
tarfile.is_tarfile(filename) or
File "/usr/lib64/python2.7/tarfile.py", line 2585, in is_tarfile
t = open(name)
File "/usr/lib64/python2.7/tarfile.py", line 1660, in open
return func(name, "r", fileobj, **kwargs)
File "/usr/lib64/python2.7/tarfile.py", line 1722, in gzopen
fileobj = bltn_open(name, mode + "b")
IOError: [Errno 2] No such file or directory: '/root/unzip-6.0-h611a1e1_0.tar.bz2'
It looks like the bz2 packages don't contain the required files or sth.
Also it says that there is no such file or directory which is false because I can download the packages from the client via "wget" command.
I don't know if the packages that I download from anaconda repository can't be installed or if there is another command to install the packages.
How should I install packages from the repository server to the client machines?
Is there any method or should I use another repository? Also I couldn't able to find a mirror to download all the python packages.
EDIT:
I also tried below methods.
First I decompress the tar.bz2 package and mv the directories that comes out of the package to the directory I create as the same name of the tar.bz2 package without the extension tar.bz2. Than I try to install the package from the client. (I use this method because I thought that the "pip install" method doesn't accept the tar.bz2 filetype. But again this method failed as well.)
pip install unzip-6.0-h611a1e1_0 --trusted-host http://<IP_ADDRESS>/directory
Collecting unzip-6.0-h611a1e1_0
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._ vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18c4090>: Failed to establish a new connec tion: [Errno 101] Network is unreachable',)': /simple/unzip-6-0-h611a1e1-0/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urlli b3.connection.VerifiedHTTPSConnection object at 0x18c4190>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip- 6-0-h611a1e1-0/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urlli b3.connection.VerifiedHTTPSConnection object at 0x18c44d0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip- 6-0-h611a1e1-0/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18c4550>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip-6-0-h611a1e1-0/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18c4310>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip-6-0-h611a1e1-0/
Could not find a version that satisfies the requirement unzip-6.0-h611a1e1_0 (from versions: )
No matching distribution found for unzip-6.0-h611a1e1_0
Before the "--trusted-host" parameter, I was getting the error that destination is not trusted. After I enter that command, it no longer gives the error of "destination host is not trusted". Anyways, I enter the command from the client again as below and It gives different error.
pip install unzip-6.0-h611a1e1_0 http://<IP_ADDRESS>/path_to_packages
Collecting http://<IP_ADDRESS>/path_to_packages
Downloading http://<IP_ADDRESS>/path_to_packages
Cannot unpack file /tmp/pip-nPbYPq-unpack/deneme (downloaded from /tmp/pip-RcKbdh-build, content-type: text/html;charset=ISO-8859-1); cannot detect archive format
Cannot determine archive format of /tmp/pip-RcKbdh-build
Lastly I tried to install the tar.bz2 package without a decompression in server side, and when I enter the command from the client side, it outputs a progress as %100 and said "Complete output from command python setup.py egg_info:". But again it ended up with an error.
pip install http://<IP_ADDRESS>/path_to_packages/unzip-6.0-h611a1e1_0.tar.bz2
Collecting http://<IP_ADDRESS>/path_to_packages/unzip-6.0-h611a1e1_0.tar.bz2
Downloading http://<IP_ADDRESS>/path_to_packages/unzip-6.0-h611a1e1_0.tar.bz2 (93kB)
100% |████████████████████████████████| 102kB 84.5MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/pip-oxGjT4-build/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-oxGjT4-build/
I think that because of the packages that I download from the anaconda repository (The link is on top of the page) haven't got the files that is needed to install them via pipe, it will give error everytime.
Is there another mirror that I can download all the python packages to my repository server? Or is there anything that I'm doing wrong?
linux software-installation python repository pip
add a comment |
I have a rhel server which I use as yum repository for my other servers. Now I need it to serve python packages as well. I found an anaconda repository to download packages: https://repo.continuum.io/pkgs/main/linux-64/ I download all the packages with:
wget -A bz2 https://repo.continuum.io/pkgs/main/linux-64/ -P /path_for_packages
I use -A bz2 because all the packages are tar.bz2 formatted.
The thing is, other servers can't download/install the packages I downloaded to the repository server.
I try to download the packages via "wget" command and decompress the packages via "tar -xjvf" but after that, I couldn't find any installation file to install that package.
Than, I found the proper way to install python packages is "pip install" command.
However, when I try to use "pip install", I get the below error.
pip install wget-1.19.5-h20c2e04_0.tar.bz2 -f http://<IP_Address>/path_to_packages/
Requirement 'unzip-6.0-h611a1e1_0.tar.bz2' looks like a filename, but the file does not exist
Processing ./unzip-6.0-h611a1e1_0.tar.bz2
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 307, in run
requirement_set.prepare_files(finder)
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 370, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 587, in _prepare_file
session=self.session, hashes=hashes)
File "/usr/lib/python2.7/site-packages/pip/download.py", line 798, in unpack_url
unpack_file_url(link, location, download_dir, hashes=hashes)
File "/usr/lib/python2.7/site-packages/pip/download.py", line 705, in unpack_file_url
unpack_file(from_path, location, content_type, link)
File "/usr/lib/python2.7/site-packages/pip/utils/__init__.py", line 602, in unpack_file
tarfile.is_tarfile(filename) or
File "/usr/lib64/python2.7/tarfile.py", line 2585, in is_tarfile
t = open(name)
File "/usr/lib64/python2.7/tarfile.py", line 1660, in open
return func(name, "r", fileobj, **kwargs)
File "/usr/lib64/python2.7/tarfile.py", line 1722, in gzopen
fileobj = bltn_open(name, mode + "b")
IOError: [Errno 2] No such file or directory: '/root/unzip-6.0-h611a1e1_0.tar.bz2'
It looks like the bz2 packages don't contain the required files or sth.
Also it says that there is no such file or directory which is false because I can download the packages from the client via "wget" command.
I don't know if the packages that I download from anaconda repository can't be installed or if there is another command to install the packages.
How should I install packages from the repository server to the client machines?
Is there any method or should I use another repository? Also I couldn't able to find a mirror to download all the python packages.
EDIT:
I also tried below methods.
First I decompress the tar.bz2 package and mv the directories that comes out of the package to the directory I create as the same name of the tar.bz2 package without the extension tar.bz2. Than I try to install the package from the client. (I use this method because I thought that the "pip install" method doesn't accept the tar.bz2 filetype. But again this method failed as well.)
pip install unzip-6.0-h611a1e1_0 --trusted-host http://<IP_ADDRESS>/directory
Collecting unzip-6.0-h611a1e1_0
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._ vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18c4090>: Failed to establish a new connec tion: [Errno 101] Network is unreachable',)': /simple/unzip-6-0-h611a1e1-0/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urlli b3.connection.VerifiedHTTPSConnection object at 0x18c4190>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip- 6-0-h611a1e1-0/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urlli b3.connection.VerifiedHTTPSConnection object at 0x18c44d0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip- 6-0-h611a1e1-0/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18c4550>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip-6-0-h611a1e1-0/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18c4310>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip-6-0-h611a1e1-0/
Could not find a version that satisfies the requirement unzip-6.0-h611a1e1_0 (from versions: )
No matching distribution found for unzip-6.0-h611a1e1_0
Before the "--trusted-host" parameter, I was getting the error that destination is not trusted. After I enter that command, it no longer gives the error of "destination host is not trusted". Anyways, I enter the command from the client again as below and It gives different error.
pip install unzip-6.0-h611a1e1_0 http://<IP_ADDRESS>/path_to_packages
Collecting http://<IP_ADDRESS>/path_to_packages
Downloading http://<IP_ADDRESS>/path_to_packages
Cannot unpack file /tmp/pip-nPbYPq-unpack/deneme (downloaded from /tmp/pip-RcKbdh-build, content-type: text/html;charset=ISO-8859-1); cannot detect archive format
Cannot determine archive format of /tmp/pip-RcKbdh-build
Lastly I tried to install the tar.bz2 package without a decompression in server side, and when I enter the command from the client side, it outputs a progress as %100 and said "Complete output from command python setup.py egg_info:". But again it ended up with an error.
pip install http://<IP_ADDRESS>/path_to_packages/unzip-6.0-h611a1e1_0.tar.bz2
Collecting http://<IP_ADDRESS>/path_to_packages/unzip-6.0-h611a1e1_0.tar.bz2
Downloading http://<IP_ADDRESS>/path_to_packages/unzip-6.0-h611a1e1_0.tar.bz2 (93kB)
100% |████████████████████████████████| 102kB 84.5MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/pip-oxGjT4-build/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-oxGjT4-build/
I think that because of the packages that I download from the anaconda repository (The link is on top of the page) haven't got the files that is needed to install them via pipe, it will give error everytime.
Is there another mirror that I can download all the python packages to my repository server? Or is there anything that I'm doing wrong?
linux software-installation python repository pip
add a comment |
I have a rhel server which I use as yum repository for my other servers. Now I need it to serve python packages as well. I found an anaconda repository to download packages: https://repo.continuum.io/pkgs/main/linux-64/ I download all the packages with:
wget -A bz2 https://repo.continuum.io/pkgs/main/linux-64/ -P /path_for_packages
I use -A bz2 because all the packages are tar.bz2 formatted.
The thing is, other servers can't download/install the packages I downloaded to the repository server.
I try to download the packages via "wget" command and decompress the packages via "tar -xjvf" but after that, I couldn't find any installation file to install that package.
Than, I found the proper way to install python packages is "pip install" command.
However, when I try to use "pip install", I get the below error.
pip install wget-1.19.5-h20c2e04_0.tar.bz2 -f http://<IP_Address>/path_to_packages/
Requirement 'unzip-6.0-h611a1e1_0.tar.bz2' looks like a filename, but the file does not exist
Processing ./unzip-6.0-h611a1e1_0.tar.bz2
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 307, in run
requirement_set.prepare_files(finder)
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 370, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 587, in _prepare_file
session=self.session, hashes=hashes)
File "/usr/lib/python2.7/site-packages/pip/download.py", line 798, in unpack_url
unpack_file_url(link, location, download_dir, hashes=hashes)
File "/usr/lib/python2.7/site-packages/pip/download.py", line 705, in unpack_file_url
unpack_file(from_path, location, content_type, link)
File "/usr/lib/python2.7/site-packages/pip/utils/__init__.py", line 602, in unpack_file
tarfile.is_tarfile(filename) or
File "/usr/lib64/python2.7/tarfile.py", line 2585, in is_tarfile
t = open(name)
File "/usr/lib64/python2.7/tarfile.py", line 1660, in open
return func(name, "r", fileobj, **kwargs)
File "/usr/lib64/python2.7/tarfile.py", line 1722, in gzopen
fileobj = bltn_open(name, mode + "b")
IOError: [Errno 2] No such file or directory: '/root/unzip-6.0-h611a1e1_0.tar.bz2'
It looks like the bz2 packages don't contain the required files or sth.
Also it says that there is no such file or directory which is false because I can download the packages from the client via "wget" command.
I don't know if the packages that I download from anaconda repository can't be installed or if there is another command to install the packages.
How should I install packages from the repository server to the client machines?
Is there any method or should I use another repository? Also I couldn't able to find a mirror to download all the python packages.
EDIT:
I also tried below methods.
First I decompress the tar.bz2 package and mv the directories that comes out of the package to the directory I create as the same name of the tar.bz2 package without the extension tar.bz2. Than I try to install the package from the client. (I use this method because I thought that the "pip install" method doesn't accept the tar.bz2 filetype. But again this method failed as well.)
pip install unzip-6.0-h611a1e1_0 --trusted-host http://<IP_ADDRESS>/directory
Collecting unzip-6.0-h611a1e1_0
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._ vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18c4090>: Failed to establish a new connec tion: [Errno 101] Network is unreachable',)': /simple/unzip-6-0-h611a1e1-0/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urlli b3.connection.VerifiedHTTPSConnection object at 0x18c4190>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip- 6-0-h611a1e1-0/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urlli b3.connection.VerifiedHTTPSConnection object at 0x18c44d0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip- 6-0-h611a1e1-0/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18c4550>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip-6-0-h611a1e1-0/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18c4310>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip-6-0-h611a1e1-0/
Could not find a version that satisfies the requirement unzip-6.0-h611a1e1_0 (from versions: )
No matching distribution found for unzip-6.0-h611a1e1_0
Before the "--trusted-host" parameter, I was getting the error that destination is not trusted. After I enter that command, it no longer gives the error of "destination host is not trusted". Anyways, I enter the command from the client again as below and It gives different error.
pip install unzip-6.0-h611a1e1_0 http://<IP_ADDRESS>/path_to_packages
Collecting http://<IP_ADDRESS>/path_to_packages
Downloading http://<IP_ADDRESS>/path_to_packages
Cannot unpack file /tmp/pip-nPbYPq-unpack/deneme (downloaded from /tmp/pip-RcKbdh-build, content-type: text/html;charset=ISO-8859-1); cannot detect archive format
Cannot determine archive format of /tmp/pip-RcKbdh-build
Lastly I tried to install the tar.bz2 package without a decompression in server side, and when I enter the command from the client side, it outputs a progress as %100 and said "Complete output from command python setup.py egg_info:". But again it ended up with an error.
pip install http://<IP_ADDRESS>/path_to_packages/unzip-6.0-h611a1e1_0.tar.bz2
Collecting http://<IP_ADDRESS>/path_to_packages/unzip-6.0-h611a1e1_0.tar.bz2
Downloading http://<IP_ADDRESS>/path_to_packages/unzip-6.0-h611a1e1_0.tar.bz2 (93kB)
100% |████████████████████████████████| 102kB 84.5MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/pip-oxGjT4-build/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-oxGjT4-build/
I think that because of the packages that I download from the anaconda repository (The link is on top of the page) haven't got the files that is needed to install them via pipe, it will give error everytime.
Is there another mirror that I can download all the python packages to my repository server? Or is there anything that I'm doing wrong?
linux software-installation python repository pip
I have a rhel server which I use as yum repository for my other servers. Now I need it to serve python packages as well. I found an anaconda repository to download packages: https://repo.continuum.io/pkgs/main/linux-64/ I download all the packages with:
wget -A bz2 https://repo.continuum.io/pkgs/main/linux-64/ -P /path_for_packages
I use -A bz2 because all the packages are tar.bz2 formatted.
The thing is, other servers can't download/install the packages I downloaded to the repository server.
I try to download the packages via "wget" command and decompress the packages via "tar -xjvf" but after that, I couldn't find any installation file to install that package.
Than, I found the proper way to install python packages is "pip install" command.
However, when I try to use "pip install", I get the below error.
pip install wget-1.19.5-h20c2e04_0.tar.bz2 -f http://<IP_Address>/path_to_packages/
Requirement 'unzip-6.0-h611a1e1_0.tar.bz2' looks like a filename, but the file does not exist
Processing ./unzip-6.0-h611a1e1_0.tar.bz2
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/commands/install.py", line 307, in run
requirement_set.prepare_files(finder)
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 370, in prepare_files
ignore_dependencies=self.ignore_dependencies))
File "/usr/lib/python2.7/site-packages/pip/req/req_set.py", line 587, in _prepare_file
session=self.session, hashes=hashes)
File "/usr/lib/python2.7/site-packages/pip/download.py", line 798, in unpack_url
unpack_file_url(link, location, download_dir, hashes=hashes)
File "/usr/lib/python2.7/site-packages/pip/download.py", line 705, in unpack_file_url
unpack_file(from_path, location, content_type, link)
File "/usr/lib/python2.7/site-packages/pip/utils/__init__.py", line 602, in unpack_file
tarfile.is_tarfile(filename) or
File "/usr/lib64/python2.7/tarfile.py", line 2585, in is_tarfile
t = open(name)
File "/usr/lib64/python2.7/tarfile.py", line 1660, in open
return func(name, "r", fileobj, **kwargs)
File "/usr/lib64/python2.7/tarfile.py", line 1722, in gzopen
fileobj = bltn_open(name, mode + "b")
IOError: [Errno 2] No such file or directory: '/root/unzip-6.0-h611a1e1_0.tar.bz2'
It looks like the bz2 packages don't contain the required files or sth.
Also it says that there is no such file or directory which is false because I can download the packages from the client via "wget" command.
I don't know if the packages that I download from anaconda repository can't be installed or if there is another command to install the packages.
How should I install packages from the repository server to the client machines?
Is there any method or should I use another repository? Also I couldn't able to find a mirror to download all the python packages.
EDIT:
I also tried below methods.
First I decompress the tar.bz2 package and mv the directories that comes out of the package to the directory I create as the same name of the tar.bz2 package without the extension tar.bz2. Than I try to install the package from the client. (I use this method because I thought that the "pip install" method doesn't accept the tar.bz2 filetype. But again this method failed as well.)
pip install unzip-6.0-h611a1e1_0 --trusted-host http://<IP_ADDRESS>/directory
Collecting unzip-6.0-h611a1e1_0
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._ vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18c4090>: Failed to establish a new connec tion: [Errno 101] Network is unreachable',)': /simple/unzip-6-0-h611a1e1-0/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urlli b3.connection.VerifiedHTTPSConnection object at 0x18c4190>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip- 6-0-h611a1e1-0/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urlli b3.connection.VerifiedHTTPSConnection object at 0x18c44d0>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip- 6-0-h611a1e1-0/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18c4550>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip-6-0-h611a1e1-0/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x18c4310>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/unzip-6-0-h611a1e1-0/
Could not find a version that satisfies the requirement unzip-6.0-h611a1e1_0 (from versions: )
No matching distribution found for unzip-6.0-h611a1e1_0
Before the "--trusted-host" parameter, I was getting the error that destination is not trusted. After I enter that command, it no longer gives the error of "destination host is not trusted". Anyways, I enter the command from the client again as below and It gives different error.
pip install unzip-6.0-h611a1e1_0 http://<IP_ADDRESS>/path_to_packages
Collecting http://<IP_ADDRESS>/path_to_packages
Downloading http://<IP_ADDRESS>/path_to_packages
Cannot unpack file /tmp/pip-nPbYPq-unpack/deneme (downloaded from /tmp/pip-RcKbdh-build, content-type: text/html;charset=ISO-8859-1); cannot detect archive format
Cannot determine archive format of /tmp/pip-RcKbdh-build
Lastly I tried to install the tar.bz2 package without a decompression in server side, and when I enter the command from the client side, it outputs a progress as %100 and said "Complete output from command python setup.py egg_info:". But again it ended up with an error.
pip install http://<IP_ADDRESS>/path_to_packages/unzip-6.0-h611a1e1_0.tar.bz2
Collecting http://<IP_ADDRESS>/path_to_packages/unzip-6.0-h611a1e1_0.tar.bz2
Downloading http://<IP_ADDRESS>/path_to_packages/unzip-6.0-h611a1e1_0.tar.bz2 (93kB)
100% |████████████████████████████████| 102kB 84.5MB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
IOError: [Errno 2] No such file or directory: '/tmp/pip-oxGjT4-build/setup.py'
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-oxGjT4-build/
I think that because of the packages that I download from the anaconda repository (The link is on top of the page) haven't got the files that is needed to install them via pipe, it will give error everytime.
Is there another mirror that I can download all the python packages to my repository server? Or is there anything that I'm doing wrong?
linux software-installation python repository pip
linux software-installation python repository pip
edited 21 hours ago
G.Baysec
asked yesterday
G.BaysecG.Baysec
247
247
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f508919%2flocal-python-repository-packet-installation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f508919%2flocal-python-repository-packet-installation%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown