I have met some error when running pip install google-api-python-client --proxy http://10.10.40.10:80 , as follow details.
Downloading/unpacking google-api-python-client
Downloading google_api_python_client-1.6.6-py2.py3-none-any.whl (53kB): 53kB downloaded
Downloading/unpacking oauth2client>=1.5.0,<5.0.0dev (from google-api-python-client)
Real name of requirement oauth2client is oauth2client
however, it's no problem when installing 'future' package which don't deploy packages ( like enum, futures, six, rsa.,),
need to update pip with resolved: pip install google-api-python-client --proxy http://10.10.40.10:80
'Requirement already satisfied: google-api-python-client in ./lib/python2.7/site-packages (1.6.6)
Requirement already satisfied: six<2dev,>=1.6.1 in ./lib/python2.7/site-packages (from google-api-python-client) (1.11.0)
Requirement already satisfied: uritemplate<4dev,>=3.0.0 in ./lib/python2.7/site-packages (from google-api-python-client) (3.0.0)
Requirement already satisfied: oauth2client<5.0.0dev,>=1.5.0 in ./lib/python2.7/site-packages (from google-api-python-client) (4.1.2)
Requirement already satisfied: httplib2<1dev,>=0.9.2 in ./lib/python2.7/site-packages (from google-api-python-client) (0.11.3)
Requirement already satisfied: rsa>=3.1.4 in ./lib/python2.7/site-packages (from oauth2client<5.0.0dev,>=1.5.0->google-api-python-client) (3.4.2)
Requirement already satisfied: pyasn1-modules>=0.0.5 in ./lib/python2.7/site-packages (from oauth2client<5.0.0dev,>=1.5.0->google-api-python-client) (0.2.1)
Requirement already satisfied: pyasn1>=0.1.7 in ./lib/python2.7/site-packages (from oauth2client<5.0.0dev,>=1.5.0->google-api-python-client) (0.4.2)'
Related
It shows that everything is propper installed
(storefront) (base) ...#MacBook-Pro storefront % pip install drf-nested-routers
Requirement already satisfied: drf-nested-routers in /Users/.../.local/share/virtualenvs/storefront-JGOY8xqq/lib/python3.10/site-packages (0.93.4)
Requirement already satisfied: Django>=1.11 in /Users/.../.local/share/virtualenvs/storefront-JGOY8xqq/lib/python3.10/site-packages (from drf-nested-routers) (4.1.3)
Requirement already satisfied: djangorestframework>=3.6.0 in /Users/.../.local/share/virtualenvs/storefront-JGOY8xqq/lib/python3.10/site-packages (from drf-nested-routers) (3.14.0)
Requirement already satisfied: sqlparse>=0.2.2 in /Users/.../.local/share/virtualenvs/storefront-JGOY8xqq/lib/python3.10/site-packages (from Django>=1.11->drf-nested-routers) (0.4.3)
Requirement already satisfied: asgiref<4,>=3.5.2 in /Users/.../.local/share/virtualenvs/storefront-JGOY8xqq/lib/python3.10/site-packages (from Django>=1.11->drf-nested-routers) (3.5.2)
Requirement already satisfied: pytz in /Users/../.local/share/virtualenvs/storefront-JGOY8xqq/lib/python3.10/site-packages (from djangorestframework>=3.6.0->drf-nested-routers) (2022.6)
(storefront) (base) ...#MacBook-Pro storefront %
But still get the Error:
in
from rest_framework_nested import routers
ModuleNotFoundError: No module named 'rest_framework_nested'
While I try to install dso package (https://github.com/brendenpetersen/deep-symbolic-optimization), I get this error :
MY COMMAND:
pip install -e ./dso[all]
THE OUTPUT:
Obtaining file:///home/remi/deep-symbolic-optimization-master/dso
Preparing metadata (setup.py) ... done
Requirement already satisfied: pytest in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (7.0.1)
Requirement already satisfied: cython in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (0.29.30)
Requirement already satisfied: numpy<=1.19 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (1.19.0)
Requirement already satisfied: tensorflow==1.14 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (1.14.0)
Requirement already satisfied: numba==0.53.1 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (0.53.1)
Requirement already satisfied: sympy in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (1.9)
Requirement already satisfied: pandas in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (1.1.5)
Requirement already satisfied: scikit-learn in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (0.24.2)
Requirement already satisfied: click in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (8.0.4)
Requirement already satisfied: deap in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (1.3.1)
Requirement already satisfied: pathos in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (0.2.8)
Requirement already satisfied: seaborn in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (0.11.2)
Requirement already satisfied: progress in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (1.6)
Requirement already satisfied: tqdm in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (4.64.0)
Requirement already satisfied: commentjson in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (0.9.0)
Requirement already satisfied: PyYAML in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (6.0)
Requirement already satisfied: mpi4py in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (3.1.1)
Requirement already satisfied: pybullet in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (3.2.5)
Requirement already satisfied: gym[box2d]==0.15.4 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (0.15.4)
Requirement already satisfied: stable-baselines[mpi]==2.10.0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from dso==1.0.dev0) (2.10.0)
Requirement already satisfied: pyglet<=1.3.2,>=1.2.0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from gym[box2d]==0.15.4->dso==1.0.dev0) (1.3.2)
Requirement already satisfied: cloudpickle~=1.2.0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from gym[box2d]==0.15.4->dso==1.0.dev0) (1.2.2)
Requirement already satisfied: opencv-python in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from gym[box2d]==0.15.4->dso==1.0.dev0) (4.6.0.66)
Requirement already satisfied: six in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from gym[box2d]==0.15.4->dso==1.0.dev0) (1.16.0)
Requirement already satisfied: scipy in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from gym[box2d]==0.15.4->dso==1.0.dev0) (1.5.4)
Requirement already satisfied: box2d-py~=2.3.5 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from gym[box2d]==0.15.4->dso==1.0.dev0) (2.3.8)
Requirement already satisfied: llvmlite<0.37,>=0.36.0rc1 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from numba==0.53.1->dso==1.0.dev0) (0.36.0)
Requirement already satisfied: setuptools in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from numba==0.53.1->dso==1.0.dev0) (59.6.0)
Requirement already satisfied: matplotlib in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from stable-baselines[mpi]==2.10.0->dso==1.0.dev0) (3.3.4)
Requirement already satisfied: joblib in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from stable-baselines[mpi]==2.10.0->dso==1.0.dev0) (1.1.0)
Requirement already satisfied: gast>=0.2.0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorflow==1.14->dso==1.0.dev0) (0.5.3)
Requirement already satisfied: tensorflow-estimator<1.15.0rc0,>=1.14.0rc0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorflow==1.14->dso==1.0.dev0) (1.14.0)
Requirement already satisfied: google-pasta>=0.1.6 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorflow==1.14->dso==1.0.dev0) (0.2.0)
Requirement already satisfied: protobuf>=3.6.1 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorflow==1.14->dso==1.0.dev0) (3.19.4)
Requirement already satisfied: termcolor>=1.1.0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorflow==1.14->dso==1.0.dev0) (1.1.0)
Requirement already satisfied: keras-applications>=1.0.6 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorflow==1.14->dso==1.0.dev0) (1.0.8)
Requirement already satisfied: wrapt>=1.11.1 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorflow==1.14->dso==1.0.dev0) (1.14.1)
Requirement already satisfied: grpcio>=1.8.6 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorflow==1.14->dso==1.0.dev0) (1.47.0)
Requirement already satisfied: wheel>=0.26 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorflow==1.14->dso==1.0.dev0) (0.37.1)
Requirement already satisfied: tensorboard<1.15.0,>=1.14.0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorflow==1.14->dso==1.0.dev0) (1.14.0)
Requirement already satisfied: absl-py>=0.7.0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorflow==1.14->dso==1.0.dev0) (1.1.0)
Requirement already satisfied: keras-preprocessing>=1.0.5 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorflow==1.14->dso==1.0.dev0) (1.1.2)
Requirement already satisfied: astor>=0.6.0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorflow==1.14->dso==1.0.dev0) (0.8.1)
Requirement already satisfied: importlib-metadata in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from click->dso==1.0.dev0) (4.8.3)
Requirement already satisfied: lark-parser<0.8.0,>=0.7.1 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from commentjson->dso==1.0.dev0) (0.7.8)
Requirement already satisfied: pytz>=2017.2 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from pandas->dso==1.0.dev0) (2022.1)
Requirement already satisfied: python-dateutil>=2.7.3 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from pandas->dso==1.0.dev0) (2.8.2)
Requirement already satisfied: pox>=0.3.0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from pathos->dso==1.0.dev0) (0.3.0)
Requirement already satisfied: multiprocess>=0.70.12 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from pathos->dso==1.0.dev0) (0.70.12.2)
Requirement already satisfied: dill>=0.3.4 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from pathos->dso==1.0.dev0) (0.3.4)
Requirement already satisfied: ppft>=1.6.6.4 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from pathos->dso==1.0.dev0) (1.6.6.4)
Requirement already satisfied: tomli>=1.0.0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from pytest->dso==1.0.dev0) (1.2.3)
Requirement already satisfied: attrs>=19.2.0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from pytest->dso==1.0.dev0) (21.4.0)
Requirement already satisfied: iniconfig in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from pytest->dso==1.0.dev0) (1.1.1)
Requirement already satisfied: py>=1.8.2 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from pytest->dso==1.0.dev0) (1.11.0)
Requirement already satisfied: packaging in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from pytest->dso==1.0.dev0) (21.3)
Requirement already satisfied: pluggy<2.0,>=0.12 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from pytest->dso==1.0.dev0) (1.0.0)
Requirement already satisfied: threadpoolctl>=2.0.0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from scikit-learn->dso==1.0.dev0) (3.1.0)
Requirement already satisfied: mpmath>=0.19 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from sympy->dso==1.0.dev0) (1.2.1)
Requirement already satisfied: importlib-resources in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tqdm->dso==1.0.dev0) (5.4.0)
WARNING: gym 0.15.4 does not provide the extra 'classic-control'
Requirement already satisfied: Pillow in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from gym[box2d]==0.15.4->dso==1.0.dev0) (8.4.0)
Requirement already satisfied: atari-py~=0.2.0 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from gym[box2d]==0.15.4->dso==1.0.dev0) (0.2.9)
Requirement already satisfied: zipp>=0.5 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from importlib-metadata->click->dso==1.0.dev0) (3.6.0)
Requirement already satisfied: typing-extensions>=3.6.4 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from importlib-metadata->click->dso==1.0.dev0) (4.1.1)
Requirement already satisfied: h5py in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from keras-applications>=1.0.6->tensorflow==1.14->dso==1.0.dev0) (3.1.0)
Requirement already satisfied: kiwisolver>=1.0.1 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from matplotlib->stable-baselines[mpi]==2.10.0->dso==1.0.dev0) (1.3.1)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.3 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from matplotlib->stable-baselines[mpi]==2.10.0->dso==1.0.dev0) (3.0.9)
Requirement already satisfied: cycler>=0.10 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from matplotlib->stable-baselines[mpi]==2.10.0->dso==1.0.dev0) (0.11.0)
Requirement already satisfied: future in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from pyglet<=1.3.2,>=1.2.0->gym[box2d]==0.15.4->dso==1.0.dev0) (0.18.2)
Requirement already satisfied: werkzeug>=0.11.15 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow==1.14->dso==1.0.dev0) (2.0.3)
Requirement already satisfied: markdown>=2.6.8 in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from tensorboard<1.15.0,>=1.14.0->tensorflow==1.14->dso==1.0.dev0) (3.3.7)
Requirement already satisfied: dataclasses in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from werkzeug>=0.11.15->tensorboard<1.15.0,>=1.14.0->tensorflow==1.14->dso==1.0.dev0) (0.8)
Requirement already satisfied: cached-property in /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages (from h5py->keras-applications>=1.0.6->tensorflow==1.14->dso==1.0.dev0) (1.5.2)
Installing collected packages: dso
Running setup.py develop for dso
ERROR: Command errored out with exit status 1:
command: /home/remi/anaconda3/envs/DSO_env/bin/python3.6 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/remi/deep-symbolic-optimization-master/dso/setup.py'"'"'; __file__='"'"'/home/remi/deep-symbolic-optimization-master/dso/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps
cwd: /home/remi/deep-symbolic-optimization-master/dso/
Complete output (19 lines):
running develop
running egg_info
writing dso.egg-info/PKG-INFO
writing dependency_links to dso.egg-info/dependency_links.txt
writing requirements to dso.egg-info/requires.txt
writing top-level names to dso.egg-info/top_level.txt
reading manifest file 'dso.egg-info/SOURCES.txt'
writing manifest file 'dso.egg-info/SOURCES.txt'
running build_ext
building 'dso.cyfunc' extension
gcc -pthread -B /home/remi/anaconda3/envs/DSO_env/compiler_compat -Wl,--sysroot=/ -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -| /home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages/numpy/core/include -fPIC -I/home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages/numpy/core/include -I/home/remi/anaconda3/envs/DSO_env/include/python3.6m -I/home/remi/anaconda3/envs/DSO_env/include/python3.6m -c dso/cyfunc.c -o build/temp.linux-x86_64-3.6/dso/cyfunc.o
gcc: error: unrecognized command-line option ‘-|’
/home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages/setuptools/dist.py:493: UserWarning: Normalizing '1.0dev' to '1.0.dev0'
warnings.warn(tmpl.format(**locals()))
/home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages/setuptools/command/easy_install.py:159: EasyInstallDeprecationWarning: easy_install command is deprecated. Use build and pip and other standards-based tools.
EasyInstallDeprecationWarning,
/home/remi/anaconda3/envs/DSO_env/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
setuptools.SetuptoolsDeprecationWarning,
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /home/remi/anaconda3/envs/DSO_env/bin/python3.6 -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/home/remi/deep-symbolic-optimization-master/dso/setup.py'"'"'; __file__='"'"'/home/remi/deep-symbolic-optimization-master/dso/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' develop --no-deps Check the logs for full command output.
I am a complete noob in computer science, so the only thing I get is that it fails due to gcc not recognizing the command -| as stated by this line in the error message:
gcc: error: unrecognized command-line option ‘-|’
Can someone help me on this ?
Thanks and regards,
Rémi
just reading the command that fails, it seems there's a | (pipe) instead of a I (capital i).
I'm not sure if you've entered a | somewhere in your configuration?
I'm working on a Mac with python 2.7.
Whenever i'm trying to install scikit-image
Command used to install : sudo pip install scikit-image, i'm getting the below error :
Requirement already satisfied: python-dateutil in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from matplotlib>=1.3.1->scikit-image) (1.5)
Requirement already satisfied: tornado in /Library/Python/2.7/site-packages (from matplotlib>=1.3.1->scikit-image) (5.0.2)
Requirement already satisfied: pyparsing>=1.5.6 in /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python (from matplotlib>=1.3.1->scikit-image) (2.0.1)
Requirement already satisfied: nose in /Library/Python/2.7/site-packages (from matplotlib>=1.3.1->scikit-image) (1.3.7)
Requirement already satisfied: futures in /Library/Python/2.7/site-packages (from tornado->matplotlib>=1.3.1->scikit-image) (3.2.0)
Requirement already satisfied: singledispatch in /Library/Python/2.7/site-packages (from tornado->matplotlib>=1.3.1->scikit-image) (3.4.0.3)
Requirement already satisfied: backports_abc>=0.4 in /Library/Python/2.7/site-packages (from tornado->matplotlib>=1.3.1->scikit-image) (0.5)
Installing collected packages: numpy, PyWavelets, scipy, six, decorator, networkx, scikit-image
Found existing installation: numpy 1.8.0rc1
Cannot uninstall 'numpy'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
If I check my version of pipenv it always shows 5.3.5, but I know there is newer version 11.0.2. How can I update it using pip?
C:\hello_world>pip search pipenv
dh-pipenv (0.1.1) - Shim between dh-virtualenv and pipenv
pipenv-package-requirements (0.2) - Pipenv tools for requirements.txt
pipenv-tools (0.0.1) - The missing tools for pipenv.
tox-pipenv (1.3.0) - A pipenv plugin for tox
pipenv-to-requirements (0.3.1) - Generate requirements[-dev].txt from
Pipfile using pipenv
pipenv (11.0.2) - Python Development Workflow for Humans.
INSTALLED: 5.3.5
LATEST: 11.0.2
When installing, all I get is:
C:\hello_world>pip install pipenv
Requirement already satisfied: pipenv in c:\users\administrator\appdata\roaming\
python\python36\site-packages
Requirement already satisfied: virtualenv in c:\users\administrator\appdata\roam
ing\python\python36\site-packages (from pipenv)
Requirement already satisfied: semver in c:\users\administrator\appdata\roaming\
python\python36\site-packages (from pipenv)
Requirement already satisfied: pip in c:\python36\lib\site-packages (from pipenv
)
Requirement already satisfied: pip-tools>=1.9.0 in c:\users\administrator\appdat
a\roaming\python\python36\site-packages (from pipenv)
Requirement already satisfied: background in c:\users\administrator\appdata\roam
ing\python\python36\site-packages (from pipenv)
Requirement already satisfied: setuptools>=36.3.0 in c:\users\administrator\appd
ata\roaming\python\python36\site-packages (from pipenv)
Requirement already satisfied: pew>=0.1.26 in c:\users\administrator\appdata\roa
ming\python\python36\site-packages (from pipenv)
Requirement already satisfied: click>=6 in c:\users\administrator\appdata\roamin
g\python\python36\site-packages (from pip-tools>=1.9.0->pipenv)
Requirement already satisfied: six in c:\python36\lib\site-packages (from pip-to
ols>=1.9.0->pipenv)
Requirement already satisfied: first in c:\users\administrator\appdata\roaming\p
ython\python36\site-packages (from pip-tools>=1.9.0->pipenv)
Requirement already satisfied: futures in c:\users\administrator\appdata\roaming
\python\python36\site-packages (from background->pipenv)
Requirement already satisfied: virtualenv-clone>=0.2.5 in c:\users\administrator
\appdata\roaming\python\python36\site-packages (from pew>=0.1.26->pipenv)
Requirement already satisfied: pythonz-bd>=1.10.2 in c:\users\administrator\appd
ata\roaming\python\python36\site-packages (from pew>=0.1.26->pipenv)
Requirement already satisfied: resumable-urlretrieve; python_version == "3.6" in
c:\users\administrator\appdata\roaming\python\python36\site-packages (from pyth
onz-bd>=1.10.2->pew>=0.1.26->pipenv)
Requirement already satisfied: requests in c:\python36\lib\site-packages (from r
esumable-urlretrieve; python_version == "3.6"->pythonz-bd>=1.10.2->pew>=0.1.26->
pipenv)
The question is very simple, but mostly code to show you guy what I'm seeing. So this is basically filler text so that StackOverflow stops flagging that the question is mostly code. Please help.
The right way to upgrade is upgrade:
pip install --upgrade pipenv
I have been trying to install pylint to be used on terminal, but have been unsuccessful in using it. The installation gets successful, but whenever I try to run pylint command, it returns the following error -
-bash: pylint: command not found
I have tried using following commands -
pip install pylint
python -m pip install pylint
sudo pip install pylint
sudo -H pip install pylint
I have uninstalled it, before trying each of the above command, but everytime I install it, the installation gets successful, but I am unable to use it on command line. I know it's something silly I am missing.
Here's the output I get on installation -
My-Mac:Dev noob$ sudo -H pip install pylint
Collecting pylint
Using cached pylint-1.6.5-py2.py3-none-any.whl
Requirement already satisfied: isort>=4.2.5 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pylint)
Requirement already satisfied: six in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pylint)
Requirement already satisfied: mccabe in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pylint)
Requirement already satisfied: configparser; python_version == "2.7" in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pylint)
Requirement already satisfied: backports.functools-lru-cache; python_version == "2.7" in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pylint)
Requirement already satisfied: astroid<1.5.0,>=1.4.5 in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from pylint)
Requirement already satisfied: wrapt in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from astroid<1.5.0,>=1.4.5->pylint)
Requirement already satisfied: lazy-object-proxy in /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages (from astroid<1.5.0,>=1.4.5->pylint)
Installing collected packages: pylint
Successfully installed pylint-1.6.5
PS: I am using macOS Sierra 10.12.3 on a Macbook pro Late 2011, in case this is relevant.
The issue is installed python executables aren't being added to your path. Our paths don't look exactly the same (probably because different python versions, I'm not sure) but mine is
host:~ williamhammond$ pip install pylint
Requirement already satisfied: pylint in /Users/williamhammond/Library/Python/3.7/lib/python/site-packages (2.3.1)
Requirement already satisfied: astroid<3,>=2.2.0 in /Users/williamhammond/Library/Python/3.7/lib/python/site-packages (from pylint) (2.2.5)
Requirement already satisfied: isort<5,>=4.2.5 in /Users/williamhammond/Library/Python/3.7/lib/python/site-packages (from pylint) (4.3.21)
Requirement already satisfied: mccabe<0.7,>=0.6 in /Users/williamhammond/Library/Python/3.7/lib/python/site-packages (from pylint) (0.6.1)
Requirement already satisfied: wrapt in /Users/williamhammond/Library/Python/3.7/lib/python/site-packages (from astroid<3,>=2.2.0->pylint) (1.11.2)
Requirement already satisfied: six in /Users/williamhammond/Library/Python/3.7/lib/python/site-packages (from astroid<3,>=2.2.0->pylint) (1.12.0)
Requirement already satisfied: typed-ast>=1.3.0; implementation_name == "cpython" in /Users/williamhammond/Library/Python/3.7/lib/python/site-packages (from astroid<3,>=2.2.0->pylint) (1.4.0)
Requirement already satisfied: lazy-object-proxy in /Users/williamhammond/Library/Python/3.7/lib/python/site-packages (from astroid<3,>=2.2.0->pylint) (1.4.1)
I was seeing the same issues as you until I looked here
host:~ williamhammond$ ls /Users/williamhammond/Library/Python/3.7/bin/
dmypy epylint isort mypy pep8 pylint pyreverse stubgen symilar
Once you add this to your path like
export PATH=$PATH:/Users/williamhammond/Library/Python/3.7/bin/
you should be able to use pylint. To make this change permanent make sure to add the command to your ~/.bashrc
For the very last comment in the response given by William Hammond on making this change permanent make sure to add the command to your ~/.bashrc, you'd find the hyperlink above a useful guide to get this done: