You are not logged in.

#1 2010-12-19 15:25:59

Ockonal
Member
From: Ukraine
Registered: 2010-10-11
Posts: 48
Website

Reinstall python

Hello, I've installed selenium for python and now can't remove/upgrade it. Deleting files from python folder didn't help.
Are there any ways to clean up the pythons libraries? (2.7 used).

Offline

#2 2010-12-19 16:18:31

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Reinstall python

How did you install it? It seems that you may have installed it manually, in which case you should use the install script to remove it. If that's not possible then you have to find the files yourself and remove them.

This is why you should always install packages with pacman. Anything that you can install manually can quickly be installed with pacman. Look up PKGBUILDs and how to create packages in the wiki. If you are unable to create a package, you can always post a request on the forum and someone will surely help you. Make sure that you check for packages in the AUR too.

https://wiki.archlinux.org/index.php/PKGBUILD
https://wiki.archlinux.org/index.php/AUR


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2010-12-19 16:21:39

Ockonal
Member
From: Ukraine
Registered: 2010-10-11
Posts: 48
Website

Re: Reinstall python

Yeah, I installed it manually, and removed too. But new version won't install, it writes that package already exists.

Offline

#4 2010-12-19 16:58:54

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Reinstall python

Did you remove the .egg stuff too?

And use makepkg this time around.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#5 2010-12-19 18:32:05

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: Reinstall python

Ockonal wrote:

Yeah, I installed it manually, and removed too. But new version won't install, it writes that package already exists.

What is the exact error message? Post the command output (enclosed in "code" tags).

If you need to find "unpackaged" files, i.e. files not belonging to a pacman package, then you can use pacpal's "--list-unpkgd" option and delete them manually. Be careful though, some of those files may be configuration files created by legitimate packages.

Last edited by Xyne (2010-12-19 18:32:57)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#6 2010-12-19 18:34:32

Ockonal
Member
From: Ukraine
Registered: 2010-10-11
Posts: 48
Website

Re: Reinstall python

Thanks, I solved my problem. I reinstalled that package again with argument:

python2 setup.py install --record list.txt

And then go through that list and remove files:

cat list.txt | xargs rm -rf

And my exact problem is that I have python2.6, python2.7, python3.1 folders and selenium was installed into 2.6 and now into 2.7.

Offline

#7 2010-12-19 21:48:51

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,400
Website

Re: Reinstall python

You really want to learn to use makepkg/pacman to manage files on your system...

Online

Board footer

Powered by FluxBB