How do I solve Installation of PyDictionary error? - django

I am trying to build a simple word search dictionary using django and when I install pyDictinary which is a django package I get this error: 'python setup.py egg_info did not run successfully.'. How can I solve this, or how other way can I get to use the package? I am made to know that pip has no problem.
I run "pip install pyDictionary" on vscode terminal

Related

error on installing language-check packages to python 2.7 environment

I am having problem of installing python package language-check to my python 2.7 environment.
I tried the pip install language-check --upgrade command but it was no avail. It gave my error saying "Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/fn/g0nd0gb54d5c__5fjhb7rp0w0000gn/T/pip-build-zMuFbc/language-check/". I have problem of understanding what it is saying. If you know what it is saying, please give me a hint on how to fix it.
I also tried to download the laguage-check tar.gz to my mac, gunzip it, ran tar -xwf command on it, went to language-check directory and ran setup install but it did not work either . It gave me an error saying "error in language-check setup command: package_data must be a dictionary mapping package names to lists of wildcard patterns". So if you know how to fix the problem, please let me know.
Thank you so much in advance,
Tom
I found alternative: pip install --user --upgrade grammar-check

Installing Django using pip

I'm trying to install Django using pip on my windows machine, however i keep getting an error in command prompt:
Fatal error in launcher: Unable to create process using '"'
I've been searching around on the internet for solutions, but I cant seem to find any.
Thanks in advance
Make sure you have a virtual env setup. Then activate it and try installing django.
Try use the python installation from Active State http://www.activestate.com/activepython/downloads
I'm a Linux User but I've used python and Django on Windows with ActiveState.
When you install it, the installation create a folder with any utils tools, like pip, easy_install and etc... And the pip of this script works well
Have you tried
python -m pip install django
as advised here

pip not working on windows python 2.7.9

I've installed Python 2.7.9, which comes with already bundled with pip. I've check that it's there in the modules list.
But when I run pip install
I get
SyntaxError: invalid syntax
With install highlighted as the error?
What am I doing wrong?
Seems like you are running pip install from Python interactive console. Instead, you should run it from Windows console (cmd or PowerShell):
python2.exe -m pip install <package_name>
Where python2.exe is executable for Python2.7.9 (you may need to include full path to the executable file) and <package_name> is the name of package you want to install
Append C:\Python27\Scripts;in PATH variable
where C:\Python27\Scripts; is the path where pip script is located.
I faced the same issue and got to know that the error is because it is not able to find the pip.exe to execute.
You need to check the path : C:\Python27\Scripts
There, you will find the .exe file and if you run the command from that folder, the command should not give you the error or while running the command, please provide entire path instead of just pip command.
just put python before pip
python pip install <package_name>
To install try the following command:
python.exe -m install web.py
what i would suggest is navigate to the location where pip is located and try with the following command :
Pip install
enter image description here
Probably you want to install Python Modules? I really did many tries, So Finally reached on point to install Python3.6. It offers most easiest way to install it's modules, Try this way
https://stackoverflow.com/a/46652413/8145641
Soon's anwser worked for me, with slight difference, without 2 after python:
python.exe -m pip install <package_name>
What I don't understand, is that this should be equal to the command in interactive console as following, isn't it ?
pip -m install <pachage_name>

Install psycopg2 on Synology

I try to install psycopg2 on my DS2413+ (DSM 4.3). I've installed Python 2.7 with ipkg and pip. When I do :
/opt/local/bin/pip2.7 install psycopg2
I got the following error :
Error: pg_config executable not found.
Please add the directory containing pg_config to the PATH
or specify the full executable path with the option:
python setup.py build_ext --pg-config /path/to/pg_config build ...
or with the pg_config option in 'setup.cfg'.
Complete output from command python setup.py egg_info:
running egg_info
But I didn't found pg_config in my /usr/syno/ where a built in version of pgsql is already installed.
In other topics with this kind of error, they recommend to install python-dev, but I can't manage to install it on my NAS ... There is also a py26-psycopg2 ikpg but I need to install it on Python 2.7.
If anyone has a solution to these problem please tell me :')
Cheers
You don't need to install psycopg2, it is already installed in the site-packages if you used the official Synology python package, see
/usr/local/packages/#appstore/Python/usr/local/lib/python2.7/site-packages/
Also, using pip from ipkg may mess up your python install as there should really be one python2.7 installation.

How to install phonenumbers for Django

there!
I am trying to run an imported app on my Ubuntu. But the error message displayed on the screen says No module named phonenumbers
So I tried to install it, by:
sudo easy_install phonenumbers
But again, it throws error, and says ImportError: No module named shortdata
Then I tried to run
sudo easy_install shortdata
This time it gives me:
error: Could not find suitable distribution for Requirement.parse('shortdata')
I cannot figure out how to install 'shortdata'.
What can I do, to make 'phonenumbers' installed?
The issue happening because the module 'shortdata' is get missing while installation. You can correct the issue by installing from source and manually copy the module 'shortdata'.
1)Download source from https://github.com/daviddrysdale/python-phonenumbers
2)Install phonenumbers using setup.py (python setup.py install)
3)Manually copy folder 'shortdata' from python-phonenumbers-dev/python/phonenumbers in source to your installed location(python2.7/site-packages/phonenumbers-5.7b1-py2.7.egg/phonenumbers)