Python Forum

Full Version: Js2Py module not found problem
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am just doing some testing for js2py and i wrote some simple code which should output 6, however whenever i try to run it, it says there is no module called js2py, what am i missing?
Here's the code:
import js2py

code1 = 'function f(x) {return x + x }'
f = js2py.eval_js(code1)

print(f(3))
Yes, i've installed it like 4 times lol
i used pip install js2py
hm, strange...
do you have multiple python installations?
(Jun-14-2020, 07:13 PM)buran Wrote: [ -> ]hm, strange...
do you have multiple python installations?
How do i check that i have multiple installations?
did you install more than one version of python