New answers tagged python-2.7
this will get rid of the jack server error, not sure about the others sudo apt-get install multimedia-jack pulseaudio --kill jack_control start
You could also write a loop that moves into each directory and runs the script before moving back: for dir in allen-p fischer-m ... solberg-g; do cd "$d" && /path/to/python/script.py && ../ done Note that this will fail if the python script fails in any of the directories.
You don't need to copy the script to each directory. Just modify the find command to run it instead: find allen-p ... zufferli-j -maxdepth 1 -type d -execdir python "$PWD"/file.py \; The -execdir option runs the command inside each directory. We use $PWD to give the full path to the script, so that a changing working directory doesn't affect where the ...
I would recommend unsetting PYTHONPATH. It is generally not needed, and it causes things to break like this by making one Python load things from another Python (in this case, it looks like the system's Python 3 is trying to load something that was written for Python 2).
Here is something! I added the export $PYTHONPATH line to my ~/.bashrc , before restarting. All of Anaconda's features work now, although the same Fatal Python error: Py_Initialize: Unable to get the locale encoding error keeps showing up instead of the usual unknown command error, for most miss-typed commands. I will keep looking into this and edit my ...
Python 2 and Python 3 have different sets of installed packages. I just installed nltk on both and am able to import in both. pip2 install nltk pip3 install nltk
It appears that since I was running anaconda, the dependencies and packages need to be installed in the virtual environment by itself. Therefore, conda install matplotlib is the solution.
If you haven't already, try installing matplotlib through the conda command. The libraries for anaconda are kept separate from the ones installed for python by pip and such. I'd hazard to guess anaconda can't actually find the library. Another possibility may be that its using an incompatible library, in which case uninstall matplotlib and then use conda ...
I had the same error and same Ubuntu versions. easy_install was not working either. Doing apt-get --reinstall had not worked. You might try recompiling: sudo python >>>import compileall >>>compileall.compile_dir('/usr/lib/python2.7', force=True) now "pip list" works (I had previously removed all the pyc files but I don't think it is ...
Sublime text is quite nice if you want a lightweight IDE, there is also PyCharm which I use, the community edition is free, and last and not least there is also gedit which comes with Ubuntu that is also nice for lightweight development. Though there isn't really a "best" just personal preference.
Top 50 recent answers are included