Velvet Star Monitor

Standout celebrity highlights with iconic style.

updates

How to install pyfoam pip/python with different versions

Writer Matthew Harrington

I installed pyfoam as:

pip install PyFoam

According to . Now, I try to use pyFoamVersion.py and I got this message:

Traceback (most recent call last): File "/usr/local/bin/pyFoamClearCase.py", line 4, in <module> __import__('pkg_resources').run_script('PyFoam==2021.6', 'pyFoamClearCase.py') File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3251, in <module> @_call_aside File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3235, in _call_aside f(*args, **kwargs) File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3264, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 583, in _build_master ws.require(__requires__) File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 900, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 786, in resolve raise DistributionNotFound(req, requirers) pkg_resources.DistributionNotFound: The 'PyFoam==2021.6' distribution was not found and is required by the application

I tried this:

pip --version pip 20.0.2 from /usr/lib/python3/dist-packages/pip (python 3.8) and

python --version Python 2.7.18

How to solve this mess?

4 Related questions 218 How to use pip with Python 3.x alongside Python 2.x 0 Two versions of python on linux. How to install packages to specific version of python? 1 How to pip install packages into different versions of Python Related questions 218 How to use pip with Python 3.x alongside Python 2.x 0 Two versions of python on linux. How to install packages to specific version of python? 1 How to pip install packages into different versions of Python 2 How to install packages in different version of python? 2 How to setup pip for coexisting Python 2.7/3.4? 0 How can I install a package using `pip` on python 3.x instead of 2.7? 0 pip: How to deal with different python versions to install Flask? 0 Dealing with multiple Python versions? 0 Python pip compatibility 1 How to install pip associated to different versions of Python Load 7 more related questions Show fewer related questions Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.