How to install Kate-plugins? - python

I'm trying to install Kate-plugins pip install pysmell==0.7.3 pyplete==0.0.2 pep8==0.6.1 pyflakes==0.5.0 pyjslint==0.3.3 simplejson==2.6.1 work fine, but when I try pip install Kate-plugins have an error "error: could not create '/usr/local/lib/python2.7/dist-packages/kate_plugins': Permission denied". sudo pip install Kate-plugins installation successful.
sudo pip install Kate-plugins
Requirement already satisfied (use --upgrade to upgrade): Kate-plugins in /usr/local/lib/python2.7/dist-packages
Requirement already satisfied (use --upgrade to upgrade): pysmell==0.7.3 in /usr/local/lib/python2.7/dist-packages (from Kate-plugins)
Requirement already satisfied (use --upgrade to upgrade): pep8==0.6.1 in /usr/lib/python2.7/dist-packages (from Kate-plugins)
Requirement already satisfied (use --upgrade to upgrade): pyflakes==0.5.0 in /usr/lib/python2.7/dist-packages (from Kate-plugins)
Requirement already satisfied (use --upgrade to upgrade): pyjslint==0.3.3 in /usr/local/lib/python2.7/dist-packages (from Kate-plugins)
Requirement already satisfied (use --upgrade to upgrade): pyplete==0.0.2 in /usr/local/lib/python2.7/dist-packages (from Kate-plugins)
Requirement already satisfied (use --upgrade to upgrade): simplejson==2.6.1 in /usr/local/lib/python2.7/dist-packages (from Kate-plugins)
Cleaning up...
Following the instruction ln -s /usr/local/lib/python2.7/dist-packages/kate_plugins/ $(kde4-config --localprefix)/share/apps/kate/pate executing without errors.
But I don't see "Python Plugins" in: Settings > Configure Kate > Plugins.
I have KDE 4.8.5 Kate 3.8.5
And one more question: Have you know some good plugins for Python + Django + Kate?

The first thing is that this repo is unmaintained. Because these plugins have been added to the official repository. The next month will be the release of the KDE 4.11 with these plugins...
It's possible that you don't see "Python Plugins" because the name of this plugin in this version was other.... Something with "Pate" or "Pâtè"

Related

pipenv is installed, but $ pipenv --version shows as command not found

Newbie here not understanding how pipenv can simultaneously show as installed and not installed at the same time. Am using Windows 10 (2004) in the VS Code terminal:
$ pip install pipenv returns this:
Requirement already satisfied: pipenv in c:\users\billa\appdata\roaming\python\python37\site-packages (2018.11.26)
Requirement already satisfied: virtualenv-clone>=0.2.5 in c:\users\billa\appdata\roaming\python\python37\site-packages (from pipenv) (0.5.3)
Requirement already satisfied: certifi in c:\users\billa\appdata\local\programs\python\python37\lib\site-packages (from pipenv) (2019.6.16)
Requirement already satisfied: virtualenv in c:\users\billa\appdata\local\programs\python\python37\lib\site-packages (from pipenv) (16.7.7)
Requirement already satisfied: setuptools>=36.2.1 in c:\users\billa\appdata\local\programs\python\python37\lib\site-packages (from pipenv) (44.0.0)
Requirement already satisfied: pip>=9.0.1 in c:\users\billa\appdata\local\programs\python\python37\lib\site-packages (from pipenv) (20.1.1)
But:
$ pipenv --version
Returns this:
$ pipenv: command not found
Perplexingly, if I use Ubuntu in Windows terminal, it reports back properly:
$ pipenv, version 2020.6.2
Thanks in advance.

ModuleNotFoundError: No module named 'pygam'

I'm trying to execute a python script which pygam ( from pygam import LogisticGAM, LinearGAM
).
when I'm trying to execute this script  I have this error:
ModuleNotFoundError: No module named 'pygam'
The problem that pygam is installed with both pip and pip3.
This the result when I try to re-install it using pip:
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support
WARNING: The directory '/home/mobelite/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
WARNING: The directory '/home/mobelite/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied: pygam in /usr/local/lib/python2.7/dist-packages (0.8.0)
Requirement already satisfied: scipy in /usr/local/lib/python2.7/dist-packages (from pygam) (1.2.2)
Requirement already satisfied: future in /usr/local/lib/python2.7/dist-packages (from pygam) (0.17.1)
Requirement already satisfied: numpy in /usr/local/lib/python2.7/dist-packages (from pygam) (1.16.5)
Requirement already satisfied: progressbar2 in /usr/local/lib/python2.7/dist-packages (from pygam) (3.47.0)
Requirement already satisfied: six in /usr/local/lib/python2.7/dist-packages (from progressbar2->pygam) (1.12.0)
Requirement already satisfied: python-utils>=2.3.0 in /usr/local/lib/python2.7/dist-packages (from progressbar2->pygam) (2.3.0)
and this is the result when I try to re-install them using pip3:
The directory '/home/mobelite/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/mobelite/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
Requirement already satisfied (use --upgrade to upgrade): pygam in /usr/local/lib/python3.5/dist-packages
Requirement already satisfied (use --upgrade to upgrade): future in /usr/local/lib/python3.5/dist-packages (from pygam)
Requirement already satisfied (use --upgrade to upgrade): progressbar2 in /usr/local/lib/python3.5/dist-packages (from pygam)
Requirement already satisfied (use --upgrade to upgrade): numpy in ./.local/lib/python3.5/site-packages (from pygam)
Requirement already satisfied (use --upgrade to upgrade): scipy in ./.local/lib/python3.5/site-packages (from pygam)
Requirement already satisfied (use --upgrade to upgrade): python-utils>=2.3.0 in /usr/local/lib/python3.5/dist-packages (from progressbar2->pygam)
Requirement already satisfied (use --upgrade to upgrade): six in ./.local/lib/python3.5/site-packages (from progressbar2->pygam)
You are using pip version 8.1.1, however version 19.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
I found this is normal because I just install it, but I don't understand why they don't see pygam
Make sure you have the right versions of python and pip.
Try installing it again with python (with the correct version) you are using to run the script.
For example, you want to run it with [yhon3.5 use the below command:
python3.5 -m pip install pygam
I am assuming python3.5 in the above command invokes Python 3.5, on my system I have python3 invoke Python 3.5
Give the install a try with sudo as well
sudo pip install pygam
# OR
sudo pip3 install pygam
pip -V command will you the currently running version of pip and the python version it is installed in.
Example:
pip -V
pip 9.0.1 from /usr/lib/python2.7/dist-packages (python 2.7)
pip3 -V
pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)
The above comes handy if multiple versions of python are installed on a system.
Let us know if it helps.
Make sure you are not using virtual environment, you must install pygame, just run the following command:
pip install pygame
Install it and try again. More information visit https://pypi.org/project/pygame/

Unable to find executable of python module installed by pip on Mac OSX

I install python using homebrew and use pip comes with it to install python package on Mac OS EL Captian.
The pip installed with python works fine when install python modules and I have no problem import it in python shell(I have test the requests and beautifulsoup4 and they can be found). But I cannot find the executable for some python modules.
For example, in this question I asked about python sphinx doc generator command not found. Based on the documentation I should have a executable sphinx-build command available after pip install. But as you can see in that question, the command is not found.
I further tried another one, cookiecutter. Pip install runs smoothly without any issues. But the binary executable is still not found. As you can see:
JINXUANs-MacBook-Pro:~ jinxuanwu$ pip install cookiecutter
Requirement already satisfied (use --upgrade to upgrade): cookiecutter in /usr/local/lib/python2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): binaryornot>=0.2.0 in /usr/local/lib/python2.7/site-packages (from cookiecutter)
Requirement already satisfied (use --upgrade to upgrade): whichcraft>=0.1.1 in /usr/local/lib/python2.7/site-packages (from cookiecutter)
Requirement already satisfied (use --upgrade to upgrade): future>=0.15.2 in /Library/Python/2.7/site-packages (from cookiecutter)
Requirement already satisfied (use --upgrade to upgrade): ruamel.yaml>=0.10.12 in /usr/local/lib/python2.7/site-packages (from cookiecutter)
Requirement already satisfied (use --upgrade to upgrade): jinja2>=2.7 in /Library/Python/2.7/site-packages (from cookiecutter)
Requirement already satisfied (use --upgrade to upgrade): click>=5.0 in /usr/local/lib/python2.7/site-packages (from cookiecutter)
Requirement already satisfied (use --upgrade to upgrade): chardet>=2.0.0 in /usr/local/lib/python2.7/site-packages (from binaryornot>=0.2.0->cookiecutter)
Requirement already satisfied (use --upgrade to upgrade): ruamel.ordereddict in /usr/local/lib/python2.7/site-packages (from ruamel.yaml>=0.10.12->cookiecutter)
Requirement already satisfied (use --upgrade to upgrade): ruamel.base>=1.0.0 in /usr/local/lib/python2.7/site-packages (from ruamel.yaml>=0.10.12->cookiecutter)
Requirement already satisfied (use --upgrade to upgrade): MarkupSafe in /Library/Python/2.7/site-packages (from jinja2>=2.7->cookiecutter)
JINXUANs-MacBook-Pro:~ jinxuanwu$ cookiecutter
-bash: cookiecutter: command not found
JINXUANs-MacBook-Pro:~ jinxuanwu$
I also tried use pip install virtualenv still facing the command not found problem.
My Python version is 2.7.11, pip is 8.0.2 comes with python.
Use pip show -f cookiecutter to show the location of everything it installed (which I found from this answer on how to list the files installed by pip
When I ran this, it shows that it's installed in ../../../../usr/local/bin/cookiecutter. Looking at the Location information above it (/Library/Python/2.7/site-packages in my case), I can see that the string of .. are used to get to the root directory.
On my Mac, it installed it in /usr/local/bin. So I can access it by updating my path environmental:
export PATH=$PATH:/usr/local/bin

unable to install ipython on mac

am using Mac El Capitan, I need to install iPython and have to use iPython notebook
I use
$ pip install ipython
to install the ipython, but it return me
Requirement already satisfied (use --upgrade to upgrade): ipython in /Library/Python/2.7/site-packages
Requirement already satisfied (use --upgrade to upgrade): traitlets in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): pickleshare in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): simplegeneric>0.8 in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): decorator in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): gnureadline in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): appnope in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): pexpect in /Library/Python/2.7/site-packages (from ipython)
Requirement already satisfied (use --upgrade to upgrade): ipython-genutils in /Library/Python/2.7/site-packages (from traitlets->ipython)
Requirement already satisfied (use --upgrade to upgrade): path.py in /Library/Python/2.7/site-packages (from pickleshare->ipython)
Requirement already satisfied (use --upgrade to upgrade): ptyprocess>=0.5 in /Library/Python/2.7/site-packages (from pexpect->ipython)
abhi ~ $ ipython
-bash: ipython: command not found
any idea what am doing wrong, or what should I do now?
I tried this on my IDLE
>>> try:
import ipython
print "imported"
except :
print "not installed"
it says not installed.
Try this command:
python -m IPython
You might want to consider installing Anaconda, a Python distribution that includes most of the Python packages for science, maths, engineering, and data analysis. This is arguably the easiest way to get up and running with iPython (now Jupyter) notebooks.
Had similar issues when trying to install ipython and jupyter on my mac (El Capitan v10.11.6)
Tried various combinations including sudo -H, --ignore <whatever people suggested> etc.
The only thing that worked for me:
pip install --user ipython
pip install --user jupyter
You would also need to add your 'user python modules' to your path. One way is using nano to edit your .bash_profile:
export PATH=$PATH:/Users/YOUR USER ID/Library/Python/2.7/bin
Then just open a new terminal or use source command to apply it in the open terminal.
You can find a different approach here.
Hope it helps!

Virtualenvwrapper not installed correctly

I installed virtualenvwrapper but when I run which virtualenvwrapper I get nothing.
When I try to do a reinstall using pip3, here's what I get.
~: $ pip3 install virtualenvwrapper
Requirement already satisfied (use --upgrade to upgrade): virtualenvwrapper in /usr/local/lib/python3.4/site-packages
Requirement already satisfied (use --upgrade to upgrade): virtualenv in /usr/local/lib/python3.4/site-packages (from virtualenvwrapper)
Requirement already satisfied (use --upgrade to upgrade): virtualenv-clone in /usr/local/lib/python3.4/site-packages (from virtualenvwrapper)
Requirement already satisfied (use --upgrade to upgrade): stevedore in /usr/local/lib/python3.4/site-packages (from virtualenvwrapper)
Cleaning up...
What am I missing?
After installing virtualenvwrapper, you need to
export WORKON_HOME=~/Envs
source /usr/local/bin/virtualenvwrapper.sh
to get these functions (such as virtualenvwrapper, mkvirtualenv, cdvirtualenv, ...).
To make it permanent, just put two lines above to your ~/.bashrc file.

Categories

Resources