how uninstall scrapy by install from easy_install ?

1,788 views
Skip to first unread message

benwa chan

unread,
Dec 25, 2012, 4:33:14 AM12/25/12
to scrapy...@googlegroups.com
hi

     I was install scrapy by easy_install in server ago, but now i install scrapy by apt-get install,how can i uninstall scrapy that install by easy_install?

thanks!

benwa chan

unread,
Dec 25, 2012, 4:44:48 AM12/25/12
to scrapy...@googlegroups.com
 
I already install scarpy by a common "sudo apt-get install scrapyd-0.17 scrapy-0.17"

I try sudo rm -rf /usr/local/lib/python2.6/dist-packages/Scrapy-0.16.3-py2.6.egg

but run scrapy crawl spiderName appear error info:

Traceback (most recent call last):
  File "/usr/local/bin/scrapy", line 4, in <module>
    import pkg_resources
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2655, in <module>
    working_set.require(__requires__)
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 648, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 546, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Scrapy==0.16.3



在 2012年12月25日星期二UTC+8下午5时33分14秒,benwa chan写道:

Pablo Hoffman

unread,
Dec 25, 2012, 1:14:46 PM12/25/12
to scrapy...@googlegroups.com
Look in /usr/local/bin/python2.6/dist-packages or /usr/local/bin/python2.6/site-packages and remove any scrapy directories (and files) you find there. Next time, use "pip install" instead of easy_install, so you can use "pip uninstall" to uninstall.


--
You received this message because you are subscribed to the Google Groups "scrapy-users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/scrapy-users/-/57Eh02nfGsEJ.

To post to this group, send email to scrapy...@googlegroups.com.
To unsubscribe from this group, send email to scrapy-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/scrapy-users?hl=en.

benwa chan

unread,
Dec 26, 2012, 2:13:46 AM12/26/12
to scrapy...@googlegroups.com
In ubuntu server 10.04 , the pip have not options with uninstall

Commands available:
  bundle: Create pybundles (archives containing multiple packages)
  freeze: Put all currently installed packages (exact versions) into a requirements file
  help: Show available commands
  install: Install packages
  unzip: Unzip individual packages
  zip: Zip individual packages


在 2012年12月26日星期三UTC+8上午2时14分46秒,Pablo Hoffman写道:

Pablo Hoffman

unread,
Dec 27, 2012, 5:09:42 PM12/27/12
to scrapy...@googlegroups.com
You probably have an old version of pip installed, you should upgrade to a more recent one. If your distro doesn't ship a newer version, you can uninstall it with the distro package manager and use easy_install to install it:

easy_install pip


To view this discussion on the web visit https://groups.google.com/d/msg/scrapy-users/-/MYO0DJ-jmIkJ.
Reply all
Reply to author
Forward
0 new messages