Replies: 1 comment
-
|
see => #66 Note: from >= v2025, you do not need a specific numpy version (just install latest) Do not install packages into import os
import sys
from typing import List
site_packages_path = os.path.join(os.path.dirname(__file__), '.venv', 'Lib', 'site-packages')
paths = [
site_packages_path,
os.path.dirname(__file__),
os.path.dirname("ui"),
]
os.environ['PYTHONPATH'] = os.pathsep.join([*paths, os.environ.get('PYTHONPATH', '')])
sys.path.extend(paths)
import numpy as np
if __name__ == '__main__':
array = np.array([1, 2, 3])
vector = np.array([300, 0, 0])
norm = np.linalg.norm(vector)
normalized = vector / norm
print("Norm:", norm)
print("Normalized vector:", normalized) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Is there any way to install and use in cadwork scripts Pandas and Numpy?
I tried to copy that libraries in EXE_2025\Pclib.x64\python312\site-packages but the program reports this error:
How can I do it?
Thank you very much
Beta Was this translation helpful? Give feedback.
All reactions