I have Windows 11 and I was in the process of installing pipenv. When using the command prompt for pip3, everything was fine, but I failed to copy the correct path when getting the Warning. Now, this is what I get when trying to execute pipenv, C:\Users\corey>pip3 install --user pipenv
Requirement already satisfied: pipenv in c:\users\corey\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (2022.10.25)
Requirement already satisfied: certifi in c:\users\corey\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from pipenv) (2022.9.24)
Requirement already satisfied: virtualenv-clone>=0.2.5 in c:\users\corey\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from pipenv) (0.5.7)
Requirement already satisfied: setuptools>=36.2.1 in c:\program files\windowsapps\pythonsoftwarefoundation.python.3.10_3.10.2288.0_x64__qbz5n2kfra8p0\lib\site-packages (from pipenv) (63.2.0)
Requirement already satisfied: virtualenv in c:\users\corey\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from pipenv) (20.16.6)
Requirement already satisfied: platformdirs<3,>=2.4 in c:\users\corey\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from virtualenv->pipenv) (2.5.2)
Requirement already satisfied: distlib<1,>=0.3.6 in c:\users\corey\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from virtualenv->pipenv) (0.3.6)
Requirement already satisfied: filelock<4,>=3.4.1 in c:\users\corey\appdata\local\packages\pythonsoftwarefoundation.python.3.10_qbz5n2kfra8p0\localcache\local-packages\python310\site-packages (from virtualenv->pipenv) (3.8.0)
C:\Users\corey>pipenv
‘pipenv’ is not recognized as an internal or external command,
operable program or batch file.
So, it shows requirement satisfied, but pipenv is not working. How can I correct this?
Ok, so my solution was to uninstall Python and reinstall it. I was then able to copy and paste the path as instructed in the video. However, when I run the pipenv command this is what I get now: C:\Users\corey\AppData\Roaming\Python\Python311\site-packages\pipenv\vendor\attr_make.py:876: RuntimeWarning: Running interpreter doesn’t sufficiently support code object introspection. Some features like bare super() or accessing class will not work with slotted classes. This here is where I am lost. Could this be that I am trying to actually code, and the command prompt is not an editor?
set_closure_cell(cell, cls)
Usage: pipenv [OPTIONS] COMMAND [ARGS]…
Options:
–where Output project home information.
–venv Output virtualenv information.
–py Output Python interpreter information.
–envs Output Environment Variable options.
–rm Remove the virtualenv.
–bare Minimal output.
–man Display manpage.
–support Output diagnostic information for use in
GitHub issues.
–site-packages / --no-site-packages
Enable site-packages for the virtualenv.
[env var: PIPENV_SITE_PACKAGES]
–python TEXT Specify which version of Python virtualenv
should use.
–three Use Python 3 when creating virtualenv.
Deprecated
–clear Clears caches (pipenv, pip). [env var:
PIPENV_CLEAR]
-q, --quiet Quiet mode.
-v, --verbose Verbose mode.
–pypi-mirror TEXT Specify a PyPI mirror.
–version Show the version and exit.
-h, --help Show this message and exit.
Usage Examples:
Create a new project using Python 3.7, specifically:
$ pipenv --python 3.7
Remove project virtualenv (inferred from current directory):
$ pipenv --rm
Install all dependencies for a project (including dev):
$ pipenv install --dev
Create a lockfile containing pre-releases:
$ pipenv lock --pre
Show a graph of your installed dependencies:
$ pipenv graph
Check your installed dependencies for security vulnerabilities:
$ pipenv check
Install a local setup.py into your virtual environment/Pipfile:
$ pipenv install -e .
Use a lower-level pip command:
$ pipenv run pip freeze
Commands:
check Checks for PyUp Safety security vulnerabilities and against
PEP 508 markers provided in Pipfile.
clean Uninstalls all packages not specified in Pipfile.lock.
graph Displays currently-installed dependency graph information.
install Installs provided packages and adds them to Pipfile, or (if no
packages are given), installs all packages from Pipfile.
lock Generates Pipfile.lock.
open View a given module in your editor.
requirements Generate a requirements.txt from Pipfile.lock.
run Spawns a command installed into the virtualenv.
scripts Lists scripts in current environment config.
shell Spawns a shell within the virtualenv.
sync Installs all packages specified in Pipfile.lock.
uninstall Uninstalls a provided package and removes it from Pipfile.
update Runs lock, then sync.
verify Verify the hash in Pipfile.lock is up-to-date.