Python Forum
Js2Py module not found problem
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Js2Py module not found problem
#1
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))
Reply
#2
did you install it?
https://pypi.org/project/Js2Py/
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
Yes, i've installed it like 4 times lol
i used pip install js2py
Reply
#4
hm, strange...
do you have multiple python installations?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#5
(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?
Reply
#6
did you install more than one version of python
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  problem with memory_graph module akbarza 3 359 Mar-04-2024, 10:15 AM
Last Post: snippsat
  problem using coloeama module akbarza 3 563 Jan-08-2024, 07:31 AM
Last Post: akbarza
  problem in using subprocess module akbarza 5 1,019 Sep-24-2023, 02:02 PM
Last Post: snippsat
  problem in import module from other folder akbarza 5 1,394 Sep-01-2023, 07:48 AM
Last Post: Gribouillis
  problem in using pyqrcode module to create QRcode akbarza 9 1,935 Aug-23-2023, 04:17 PM
Last Post: snippsat
  pyside6 module not found ForeverNoob 4 1,389 Aug-18-2023, 04:36 PM
Last Post: snippsat
  I found a problem with Python Lahearle 12 1,455 Jul-20-2023, 10:58 PM
Last Post: Pedroski55
  Problem with Pyinstaller. No module named '_tkinter' tonynapoli2309 0 994 May-15-2023, 02:38 PM
Last Post: tonynapoli2309
  Module Not Found Error bitoded 4 1,402 Jan-01-2023, 09:08 AM
Last Post: bitoded
  Problem with module time and leap seconds Pedroski55 3 1,237 Oct-07-2022, 11:27 PM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020