You are not logged in.

#1 2019-03-26 06:25:29

alibaltschun
Member
Registered: 2019-03-26
Posts: 4

[solved] how to restore python and python package

hello, i was updating all python package and make some python app error ( coz not support up to date package #mybad )
i was tried to reinstall python `pacman -S --force python`
i was tried to delete all python package ( failed , but some package was deleted )

so how to restore all python and python package to default (like freshly installed arch)?
thanks

Last edited by alibaltschun (2019-03-26 07:47:24)

Offline

#2 2019-03-26 07:02:00

mpan
Member
Registered: 2012-08-01
Posts: 1,669
Website

Re: [solved] how to restore python and python package

I think that you have learned that already the hard way, but you should have never used --force. It is even not present in the manual and even when it was officially present in pacman it was highly discouraged. --force will not save the galaxy. Forget about it, forever.

The questions are: what exactly is the error you are getting now? Why do you think you need to reinstall all Python packages? Which packages exactly? Why do you think you can’t remove Python packages? Which ones?

A side note: in a freshly installed Arch there is no Python packages. Therefore I ignore that question.

Offline

#3 2019-03-26 07:20:51

alibaltschun
Member
Registered: 2019-03-26
Posts: 4

Re: [solved] how to restore python and python package

thanks for helping, i learn many thinks from this problem.
I wanna remove all python package coz many packages that is not supported by another package.

I tried to remove python `Pacman -R python` but python not found
and make another mistake ( rm -rf python folder) and face another problem `no module name ....` after reinstall python again.

was tried to install using Pacman such as `pacman install python-pip python-setuptools etc` .
but i thinks that to many  package should install by manual

Offline

#4 2019-03-26 07:27:44

alibaltschun
Member
Registered: 2019-03-26
Posts: 4

Re: [solved] how to restore python and python package

the problem was solved after `pacman -Rs python-pip` and reinstall python-pip again
thanks

Offline

#5 2019-03-26 07:35:56

mpan
Member
Registered: 2012-08-01
Posts: 1,669
Website

Re: [solved] how to restore python and python package

is the problem solved? If yes, consider marking the thread as solved.

If no, I will repeat the questions. Please answer them and answer them all:

The questions are: what exactly is the error you are getting now? Why do you think you need to reinstall all Python packages? Which packages exactly? Why do you think you can’t remove Python packages? Which ones?

Offline

#6 2019-03-26 07:45:55

alibaltschun
Member
Registered: 2019-03-26
Posts: 4

Re: [solved] how to restore python and python package

mpan wrote:

is the problem solved? If yes, consider marking the thread as solved.

If no, I will repeat the questions. Please answer them and answer them all:

The questions are: what exactly is the error you are getting now? Why do you think you need to reinstall all Python packages? Which packages exactly? Why do you think you can’t remove Python packages? Which ones?

sorry, this is my first-time post on this forums. so where i can mark yg thread as solve

the problem after updating all package, i saw many packages are not supported with apache airflow
so after that cant run the apache airflow. so i tried to delete all package and reinstalling again using pip
but while deleting package,  some package are deleted, and some package cant.

i make another problem by removing the main folder of python `rm -rf ...`
reinstall python and pip, but while installing the package using pip that gives me an error coz my pc do not have pkg_resource, six , etc
so i installing it using pacman. after that i tried remove and install pip again and the problems are solved

Offline

Board footer

Powered by FluxBB