Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Python3: another user doesn't see the library

I have 2 windows system users:

  • user1
  • user2

When running in Python3 the script:

import pandas

Module is imported successfully – under user1

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Module is not found – under user2

Location of the library is

pandas.__file__
>>> 'C:\\Users\\user1\\AppData\\Roaming\\Python\\Python310\\site-packages\\pandas\\__init__.py'

How to make the user2 to see pandas library?
It is possible to install library from user2. But pandas – is not the only library and it will take much time.

I’ve heard something about environment path, but didn’t work with this.
Would you advise me the first steps to solve the problem.

Thank you.

>Solution :

I suggest you use a virtual environment, and then just call env/scripts/activate.bat

install your librarys

then call your python script in there.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading