Skip to content
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
Closed

How can I install cherrypy offline ??? #1532

ghost opened this issue Dec 23, 2016 · 7 comments

Comments

@ghost
Copy link

ghost commented Dec 23, 2016

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

@jaraco
Copy link
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 as completed Dec 23, 2016
@ghost
Copy link
Author

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
Copy link
Author

ghost commented Dec 26, 2016

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

@jaraco
Copy link
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 as completed in 074e577 Dec 26, 2016
@jaraco
Copy link
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
Copy link
Author

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
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant