Jean-Marc
(Jean-Marc Couffin)
February 13, 2024, 1:44pm
5
calcosa509:
I would like to use Python to automate some tasks in Revit. For this, for example when I put on Python
import pyrevit
** from pyrevit import revit, DB**
it gives me this error
ModuleNotFoundError: No module named ‘pyrevit’ when I try to correct the error thus
pip install pyrevit==4.8.14 or pip install pyrevit
it gives another error ERROR: Could not find a version that satisfies the requirement pyrevit (from versions: none)
ERROR: No matching distribution found for pyrevit
ERROR: Could not find a version that satisfies the requirement pyrevit (from versions: none)
ERROR: No matching distribution found for pyrevit
@calcosa509 I did think you fully grasp what Andrea meant and what pyRevit is.
Please do start with this: QuickStart in the Realm of pyRevit and the Revit API
Don’t skip anything. Start at the beginning.
pyRevit can help you make stuff in Revit, but this is not something you can interact with in your regular python version outside the Revit process unless you created your buttons (with pyRevit)
Read / watch what I pointed out and then come back.