###
Problem description
Hi.
i have a problem with installing some packages on my pycharm.
when i try to install a package for example "Pandas",on my pycharm,i got this error:
RuntimeError: Broken toolchain: cannot link a simple C program
i'm an amateur with programming,and i couldn't fix it for a week!
can you please help me and tell me what should i do?
i appreciate that,i search all internet for solution,but i can't find it.
thank you and eexcuse me for my bad english.
and i should say my pip is updated i guess!
i upload the screen shot of error:
proposed solution from program: Try to run this command from the system terminal. Make sure that you use the correct version of 'pip' installed for your Python interpreter located at 'C:\Users\Arien Lupin\AppData\Local\Programs\Python\Python36-32\python.exe'.
Comment From: TomAugspurger
You have two options:
- Download and install Anaconda and then point pycharm to it
- Upgrade your version of pip
pip install -U pip
. Recent versions of pip should find wheels, which don't require a C complier. Then reinstall NumPy and pandas.
Comment From: vivekf103
$ sudo apt install python-xlib python-tk $ pip install Image $ pip install python-xlib $ pip install Image $ pip install pyautogui
FIrst you have to install all these dependencies then install 'pyautogui' in pycharm. This work for me. change pip to pip3 if you use pip3.
Comment From: leixiayang
遇到了同样的错误,还是无法解决
Comment From: gurkay
$ sudo apt install python-xlib python-tk $ pip install Image $ pip install python-xlib $ pip install Image $ pip install pyautogui
FIrst you have to install all these dependencies then install 'pyautogui' in pycharm. This work for me. change pip to pip3 if you use pip3.
Perfect you man
Comment From: zeezee84
Hi, 1. Install Anaconda and Update 2. On PyCharm go to File --> Settings --> Project Interpreter 3. from the right top corner click setting button and from dropdown select "Add" 4. ON new (Add Python Interpreter) window click Conda Enviroment --> Existing enviroment --> OK 5. Then go back to Project Interpreter page and select Python Interpreter you created now(something like this: Python3.7(blah blah blah ) C:\ Program Data\Anaconda3.................. 6. Then you will see Packages List. On the right handside click "+" and search for pandas. 7. Click install package
Comment From: kashave
its working, thanks
Comment From: Hardmat
Hi,
- Install Anaconda and Update
- On PyCharm go to File --> Settings --> Project Interpreter
- from the right top corner click setting button and from dropdown select "Add"
- ON new (Add Python Interpreter) window click Conda Enviroment --> Existing enviroment --> OK
- Then go back to Project Interpreter page and select Python Interpreter you created now(something like this: Python3.7(blah blah blah ) C:\ Program Data\Anaconda3..................
- Then you will see Packages List. On the right handside click "+" and search for pandas.
- Click install package
It has also work, thanks for your help @zeezee84
Comment From: sammy0231
Hello,
- Anaconda
is it mandatory to install anaconda? because in python udemy course anaconda is not available .
and now I already installed all the package and pip latest version but still getting issue
kindly suggest me
Comment From: kashave
@sammy0231 its mandatory to install Anaconda, otherwise pycharm will not work and follow the same step as above
Comment From: sammy0231
ok
Comment From: sammy0231
@sammy0231 its mandatory to install Anaconda, otherwise pycharm will not work and follow the same step as above
done all the steps still getting same issue,
could you please review the screen and let me know if you got any issue.
check project path also.
what is missing from my end
Comment From: kashave
project path is correct, after install please restart machine. and for check correct working, please import for testing purpose like
import numpy as np
X = np.array([[1, 2], [3, 4], [1, 2], [3, 4]]) print(X) y = np.array([1, 2, 3, 4]) print(y)
and please check setting for correctly pointing
Comment From: Melikadastranj
@sammy0231 its mandatory to install Anaconda, otherwise pycharm will not work and follow the same step as above
No its not mandatory!