virtualenv : no module named platformdirs

This page summarizes the projects mentioned and recommended in the original post on /r/learnpython

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
  • pyenv-win

    pyenv for Windows. pyenv is a simple python version management tool. It lets you easily switch between multiple versions of Python. It's simple, unobtrusive, and follows the UNIX tradition of single-purpose tools that do one thing well.

  • pyenv 2.64.11 Usage: pyenv [] Some useful pyenv commands are: commands List all available pyenv commands duplicate Creates a duplicate python environment local Set or show the local application-specific Python version global Set or show the global Python version shell Set or show the shell-specific Python version install Install a Python version using python-build uninstall Uninstall a specific Python version update Update the cached version DB rehash Rehash pyenv shims (run this after installing executables) vname Show the current Python version version Show the current Python version and its origin version-name Show the current Python version versions List all Python versions available to pyenv exec Runs an executable by first preparing PATH so that the selected Python which Display the full path to an executable whence List all Python versions that contain the given executable See `pyenv help ' for information on a specific command. For full documentation, see: https://github.com/pyenv-win/pyenv-win#readme C:\Users\ipodd>virtualenv env Traceback (most recent call last): File "C:\Python27\lib\runpy.py", line 162, in run_module_as_main "main", fname, loader, pkg_name) File "C:\Python27\lib\runpy.py", line 72, in run_code exec code in run_globals File "C:\Python27\Scripts\virtualenv.exe_main.py", line 5, in File "C:\Python27\lib\site-packages\virtualenv_init.py", line 3, in from .run import cli_run, session_via_cli File "C:\Python27\lib\site-packages\virtualenv\run_init_.py", line 7, in from ..app_data import make_app_data File "C:\Python27\lib\site-packages\virtualenv\app_data_init_.py", line 9, in from platformdirs import user_data_dir ImportError: No module named platformdirs C:\Users\ipodd>pip install platformdirs Downloading/unpacking platformdirs Downloading platformdirs-2.4.0.tar.gz Running setup.py (path:c:\users\ipodd\appdata\local\temp\pip_build_ipodd\platformdirs\setup.py) egg_info for package platformdirs Installing collected packages: platformdirs Running setup.py install for platformdirs Successfully installed platformdirs Cleaning up... C:\Users\ipodd>virtualenv env Traceback (most recent call last): File "C:\Python27\lib\runpy.py", line 162, in run_module_as_main "main", fname, loader, pkg_name) File "C:\Python27\lib\runpy.py", line 72, in run_code exec code in run_globals File "C:\Python27\Scripts\virtualenv.exe_main.py", line 5, in File "C:\Python27\lib\site-packages\virtualenv_init.py", line 3, in from .run import cli_run, session_via_cli File "C:\Python27\lib\site-packages\virtualenv\run_init_.py", line 7, in from ..app_data import make_app_data File "C:\Python27\lib\site-packages\virtualenv\app_data_init_.py", line 9, in from platformdirs import user_data_dir ImportError: No module named platformdirs C:\Users\ipodd>

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts