threefoldtecharchive / jumpscaleX_builders

Apache License 2.0
1 stars 0 forks source link

Installing a pip package using j, doesn't work if the package is uninstalled using pip #54

Open john-kheir opened 4 years ago

john-kheir commented 4 years ago

Steps:

1- Install any pip package from inside j

 j.builders.runtimes.python3.pip_package_install("checksumdir") 

2- Unistall the same package using pip

pip3 uninstall checksumdir

3- Try to install it again using j

Actual Result:

Giving a false flag that the package is already there


JSX> j.builders.runtimes.python3.pip_package_install("checksumdir")                                
'ALREADY DONE'

JSX> import checksumdir                                                                            
Wed 12 10:45:49 <stdin>              -   1 - <module>                           : EXCEPTION: 
    ModuleNotFoundError("No module named 'checksumdir'",)
--TRACEBACK------------------
<stdin> in <module>
    1    
-----------------------------

No module named 'checksumdir'
JSX>  

Expected Result

should be able to install it again