New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I install cherrypy offline ??? #1532

Closed
ghost opened this Issue Dec 23, 2016 · 7 comments

Comments

Projects
None yet
1 participant
@ghost

ghost commented Dec 23, 2016

I want to install cherrypy offline ,but pip install --find-links= . did not work....

@jaraco

This comment has been minimized.

Show comment
Hide comment
@jaraco

jaraco Dec 23, 2016

Member

Works for me:

$ pip download -d saved cherrypy                           
Collecting cherrypy
  Using cached CherryPy-8.1.3-py3-none-any.whl
  Saved ./saved/CherryPy-8.1.3-py3-none-any.whl
Collecting six (from cherrypy)
  Using cached six-1.10.0-py2.py3-none-any.whl
  Saved ./saved/six-1.10.0-py2.py3-none-any.whl
Successfully downloaded cherrypy six
$ # disconnect network
$ python -m venv env                                       
$ env/bin/python -m pip install --find-links=saved cherrypy
Collecting cherrypy
Collecting six (from cherrypy)
Installing collected packages: six, cherrypy
Successfully installed cherrypy-8.1.3 six-1.10.0

Voila! Enjoy.

Member

jaraco commented Dec 23, 2016

Works for me:

$ pip download -d saved cherrypy                           
Collecting cherrypy
  Using cached CherryPy-8.1.3-py3-none-any.whl
  Saved ./saved/CherryPy-8.1.3-py3-none-any.whl
Collecting six (from cherrypy)
  Using cached six-1.10.0-py2.py3-none-any.whl
  Saved ./saved/six-1.10.0-py2.py3-none-any.whl
Successfully downloaded cherrypy six
$ # disconnect network
$ python -m venv env                                       
$ env/bin/python -m pip install --find-links=saved cherrypy
Collecting cherrypy
Collecting six (from cherrypy)
Installing collected packages: six, cherrypy
Successfully installed cherrypy-8.1.3 six-1.10.0

Voila! Enjoy.

@jaraco jaraco closed this Dec 23, 2016

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Dec 26, 2016

This is for Python 3 operation, what about python 2 ?? Python 2 cherry is not whl file, it's a zip file .
For python 2 this operation should blocked in step Collecting cherrypy and show some connection error. it must be need connect internet..

ghost commented Dec 26, 2016

This is for Python 3 operation, what about python 2 ?? Python 2 cherry is not whl file, it's a zip file .
For python 2 this operation should blocked in step Collecting cherrypy and show some connection error. it must be need connect internet..

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Dec 26, 2016

Can I copy cherrypy directory in site-packages for other non-internet computer...

ghost commented Dec 26, 2016

Can I copy cherrypy directory in site-packages for other non-internet computer...

@jaraco

This comment has been minimized.

Show comment
Hide comment
@jaraco

jaraco Dec 26, 2016

Member

Hmm. you're right. There are a couple of issues here. First, the wheel cannot be universal. Now that we have releases, we should be able to cut python 2 wheels. The second issue is that the use of Setuptools_scm means a source distro will require setuptools_scm installed in advance to succeed. I think I have some suggestions for you that I'll explore tomorrow.

Member

jaraco commented Dec 26, 2016

Hmm. you're right. There are a couple of issues here. First, the wheel cannot be universal. Now that we have releases, we should be able to cut python 2 wheels. The second issue is that the use of Setuptools_scm means a source distro will require setuptools_scm installed in advance to succeed. I think I have some suggestions for you that I'll explore tomorrow.

@jaraco jaraco reopened this Dec 26, 2016

@jaraco jaraco closed this in 074e577 Dec 26, 2016

@jaraco

This comment has been minimized.

Show comment
Hide comment
@jaraco

jaraco Dec 26, 2016

Member

@ccyg: Can you try with CherryPy 8.4.0 (releasing imminently)? It includes wheels for Python 2 so should be suitable for you to replicate the recipe above.

Member

jaraco commented Dec 26, 2016

@ccyg: Can you try with CherryPy 8.4.0 (releasing imminently)? It includes wheels for Python 2 so should be suitable for you to replicate the recipe above.

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Dec 29, 2016

yes!!! I try to install and succeed. can you put those operation in cherry document for other guys has seem problems like me, cause I find this solution for several days and much suffered.

pip download -d . cherrypy

then download cherrypy and pypiwin32 and six

pip install --find-links=. cherrypy

ghost commented Dec 29, 2016

yes!!! I try to install and succeed. can you put those operation in cherry document for other guys has seem problems like me, cause I find this solution for several days and much suffered.

pip download -d . cherrypy

then download cherrypy and pypiwin32 and six

pip install --find-links=. cherrypy

@jaraco

This comment has been minimized.

Show comment
Hide comment
@jaraco

jaraco Dec 29, 2016

Member

@ccyg: Sounds like it would be an excellent addition to the StackOverflow wiki. Please consider adding it there (that way you also get the credit).

Member

jaraco commented Dec 29, 2016

@ccyg: Sounds like it would be an excellent addition to the StackOverflow wiki. Please consider adding it there (that way you also get the credit).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment