why this command gives error pip install waitress - django

Fatal error in launcher: Unable to create process using '"E:\FinalDjango\miniblog\myenv\Scripts\python.exe" "E:\FinalDjango - Copy\miniblog\myenv\Scripts\pip.exe" install waitress': The system cannot find the file specified.

Related

Getting errro openssl/rsa.h: No such file or directory

I am using ubuntu and compiling gRPC but getting error on openssh:
gRPC/src/core/lib/security/credentials/jwt/json_token.h:25:25: fatal error: openssl/rsa.h: No such file or directory
my system have following openssh version:
OpenSSL 1.0.2h-fips 3 May 2016
Tried to install openssh using following command:
apt-get install libssl-dev
its give error command not found.
It seems apt-get command is not found in your system.
This might be helpful for you (apt-get: command not found).

i'd like to do awscli with Cygwin terminal python

I wanted to use awscli with Cygwin, window7.
So I typed pip install awscli and succeeded the install.
But when I type aws, I got an message
C:\Users\k\Anaconda2\python.exe: can't open file '/cygdrive/c/Users/k/Anaconda2/Scripts/aws': [Errno 2] No such file or directory
I don't know what is cygdrive,first of the path.
So I tried cygstart/C/Users/k/Anaconda2/Scripts/aws
but it also didn't activate with error msg Unable to start 'C\Users\k\Anaconda2\Scripts\aws': The specified file was not found.
I don't know how should i do

python_setup.py and egg.info error while installing Django-toolbelt

I tried to install Django-toolbelt, but I keep getting the below. I am using Mac. I've tried googling around for solutions but no luck. Thanks.
(venv)Chans-MacBook-Pro:Django_app2 chantrinh$ pip install django-toolbelt
/Users/chantrinh/Django_app2/venv/lib/python2.7/site-packages/pip/_vendor/requests/packages/urllib3/util/ssl_.py:79: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
InsecurePlatformWarning
Collecting django-toolbelt
Using cached django-toolbelt-0.0.1.tar.gz
Collecting django (from django-toolbelt)
Using cached Django-1.8.1-py2.py3-none-any.whl
Collecting psycopg2 (from django-toolbelt)
Using cached psycopg2-2.6.tar.gz
Complete output from command python setup.py egg_info:
running egg_info
creating pip-egg-info/psycopg2.egg-info
writing pip-egg-info/psycopg2.egg-info/PKG-INFO
writing top-level names to pip-egg-info/psycopg2.egg-info/top_level.txt
writing dependency_links to pip-egg-info/psycopg2.egg-info/dependency_links.txt
writing manifest file 'pip-egg-info/psycopg2.egg-info/SOURCES.txt'
warning: manifest_maker: standard file '-c' not found
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'.
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /private/var/folders/4r/bh8wxz5d2678zg90jn1715s80000gn/T/pip-build-eUKfh5/psycopg2
(venv)Chans-MacBook-Pro:Django_app2 chantrinh$ pg_config
-bash: pg_config: command not found
(venv)Chans-MacBook-Pro:Django_app2 chantrinh$ sudo find / -name pg_config
find: /dev/fd/3: Not a directory
find: /dev/fd/4: Not a directory
I had exactly the same error message. However, in my case, I had already installed psycopg2. What was happening was the following:
I had first to install Macports,
Then in the python documentation I got this line:
sudo port install py27-psycopg2
But that line installed the package in
'/opt/local/Library/Frameworks/Python.Framework/....'
instead of
'/Library/Frameworks/Python.Framework/....'
I just created a symbolic link to solve the problem.

Unable to install nova compute. Error in command: python setup.py install

I am unable to install Nova-Compute.
When I run the python setup.py install command there is an error in parsing. I am not getting the problem. I did'nt change the setup.cfg file. I even tried replacing with the old nova setup.cfg file.
This is the error
> bash-4.2# python setup.py install
> error in setup command: Error parsing /sagar/nova/setup.cfg: LookupError: unknown encoding: utf-8
It's utf_8 not utf-8
Check Standard Encodings for more info
I had similar error but for another OpenStack service. Try to set your locale manually, for example, execute this in your shell:
export LC_ALL=C
you can also add this line into your .bashrc file.

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)