I just installed PyCharm 5 for the first time and trying to get things working. I have a simple python script that tries to import pandas (import pandas as pd). It fails because the pandas isn't installed... So I go to install it and then get an error (copied below).
I tried looking for some "byte-compiling" setting in Preferences or Help but to no avail. I've already tried the workarounds suggested here involving changing the default project editor to Python 2.7, but that didn't help (https://github.com/spacy-io/spaCy/issues/114).
What do I do?
================= Error below =================
Executed command:"
/var/folders/kf/nd7950995gn25k6_xsh3tv6c0000gn/T/tmpgYwltUpycharm-management/pip-7.1.0/setup.py install
Error occurred:
40:357: execution error: warning: build_py: byte-compiling is disabled, skipping.
Command Output:
40:357: execution error: warning: build_py: byte-compiling is disabled, skipping.
warning: install_lib: byte-compiling is disabled, skipping.
error: byte-compiling is disabled.
(1)
For all who have the same problem, it took me a while to find the solution in a new installation of PyCharm 5.
The problem is you have to change the default interpreter that brings PyCharm 5(2.6 default). It is different from your python version system and the IDE.
Windows or Linux File -> Settings -> Project Interpreter
Mac PyCharm -> Preferences -> Project Interpreter
Select your python --version and then you can install all the modules you need with
pip install ModuleName
I recommend also add all the PATHs
Preferences -> Tools ->Terminal ->Shell path : echo $PATH
There are two parts which are pretty crucial:
*(maybe it could work in 3.0... it certainly didn't work for me using 2.6)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With